
TicTacToe From Hell Plasmoid
Source (link to git-repo or to original if based on someone elses unmodified work):
Obviously there is also a 4 levels AI.
3.2 - Now considering all diagonals for winning
3.2 - Quick game rules(grid+win sizes) setup from new session interface and game area
3.2 - Several AI improvements on bigger grids with every winning size
3.2 - Corrected winning sign geometry
3.2 - Max grid size up to 9x9
3.2 - Optimizations for animation speed
3.2 - Match's logic introduction
3.2 - Who plays displayed during match(in status bar)
3.1.1 Corrected an AI bug on 3x3 grid
Ratings & Comments
6 Comments
Quote:[ 85%] Building CXX object CMakeFiles/plasma_applet_tttfh.dir/sessiondialog.o
[100%] Building CXX object CMakeFiles/plasma_applet_tttfh.dir/qrc_Icons.o
/media/Share/Share/arch-local/amd64/custom/list/kde4-eyecandy/plasmoids/kdeplasma-addons-applets-tictactoefromhell/src/tttfh-3.2-plasmoid-sources/tttfh.cpp: In member function ‘virtual void tttfh::paintInterface(QPainter*, const QStyleOptionGraphicsItem*, const QRect&)’:
/media/Share/Share/arch-local/amd64/custom/list/kde4-eyecandy/plasmoids/kdeplasma-addons-applets-tictactoefromhell/src/tttfh-3.2-plasmoid-sources/tttfh.cpp:220:20: error: cast from ‘QPainter*’ to ‘int’ loses precision
/media/Share/Share/arch-local/amd64/custom/list/kde4-eyecandy/plasmoids/kdeplasma-addons-applets-tictactoefromhell/src/tttfh-3.2-plasmoid-sources/tttfh.cpp: At global scope:
/media/Share/Share/arch-local/amd64/custom/list/kde4-eyecandy/plasmoids/kdeplasma-addons-applets-tictactoefromhell/src/tttfh-3.2-plasmoid-sources/tttfh.cpp:197:6: warning: unused parameter ‘option’
make[2]: *** [CMakeFiles/plasma_applet_tttfh.dir/tttfh.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/plasma_applet_tttfh.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
any ideas?
Ok, that is a 64bit compilation issue only. For that reason the PKGBUILD has i686 arch only. In new version(3.3) it will be running also on x86_64. However you can try the 32bit precompiled version but there is only a debian/ubuntu .deb. At last you can checkout the SVN repo at sourceforge and compile it by yourself. Bye.
I see. I will make a svn PKGBUILD then. Thanks.
you can always win if you start and set the following fields(on every level of the ai) 1 5 2 8/3
Sorry for the bug, i'll fix it soon. Thanks!
Ok, with release 3.1.1, that bug should be fixed. P.S.: In the next release (3.2) the AI will be improved for grids with winning sizes smaller than grid (for example 7x7 with winning size of 5). Let me know what you think!