Hi, I'm Miguel Toledo Gonzalez and this is
the "readme" file of the project "3SQUARES".
I have programmed this video-game in native C++,
using the graphical libraries of Allegro-4.
FILES OF THIS DISTRIBUTION: "PROTOTYPE VERSION=0.0.1"
-----------------------------------------------------
< setup3squares.msi > : Windows Installer Setup
< 3squares.zip > : Portable Windows version
Files included:
* 3squares.exe -> Program to run.
* allegro-4.4.2-md.dll -> Dynamic library with Allegro-4 functions.
* libgcc_s_dw2-1.dll -> Dynamic library with with GCC-functions.
< 3squares.out > : Linux-Ubuntu Program, ready to run by
command-line:
>./3squares.out
< 3squares_SourceCode.zip > : My source-code of this project. Organized
in a <main.cpp> file + InLine Headers, all
compressed in a ZIP file.
To compile the project (in Windows environment):
a) Decompress the file
b) In the same decompressed directory,
type the command-line:
> g++ main.cpp -o 3squares.exe -lallegro-4.4.2-md
Please, note that you need to have installed the gcc/g++ compiler
and the Allegro-4 libraries in your operating system.
< 3squares_SourceCode.tar.gz > : My source-code of this project. Organized
in a <main.cpp> file + InLine Headers, all
compressed in a TAR.GZ file.
To compile the project (in Linux-Ubuntu environment):
a) Decompress the file
b) In the same decompressed directory,
type the command-line:
> g++ main.cpp -o 3squares.out `allegro-config --libs`
Please, note that you need to have installed the gcc/g++ compiler
and the Allegro-4 libraries in your operating system.
c) To run the program, type in the command line:
>./3squares.out
NOTES
-----
This is a prototype version, the video-game uses
the Euclid's mcd algorithm to calculate
the optimal screen-size proportions.
I use a dynamical matrix of square objects,
and functions of pointers to control
and update the object properties.
Critical is the "clic-event", I needed to
ralentize it by some milliseconds, in the function-calls,
to avoid a "fast-step-turn" effect.
The algorithm to avoid a "computer-dummy-player", is
not sophisticated: to calculate all the squares possibilities
in the 3x3 table-game and to choose the "best position".
But, in this version is mixed with "random-choose", well,
I said, this only a prototype.
For discussions or questions,
send me an email: <migueltoledo74@yahoo.de>.
I speak: Spanish, Catalan, English and German.
I hope you enjoy this "dummy-game".
Yours,
Miguel Toledo Gonzalez
29.04.2013 - Papenburg, Germany -