[Kde-games-devel] Review Request: Hard AI for KSquares

Parker Coates coates at kde.org
Fri May 4 21:33:30 UTC 2012



> On April 29, 2012, 2:33 p.m., Albert Astals Cid wrote:
> > /trunk/KDE/kdegames/ksquares/src/ksquareswindow.cpp, line 349
> > <http://svn.reviewboard.kde.org/r/6951/diff/2/?file=47932#file47932line349>
> >
> >     Why is this commented out?
> 
> Tom Vincent Peters wrote:
>     I commented it out because you could "cheat" by playing the game against the easy ai, then changing it to hard in the last moment and thus get a highscore entry in the "hard" category.

There are a few ways of handling this. Personally I prefer prompting the user when they change the difficulty *while a game is in progress* if they would like to abandon the current game and start a new one with the new difficulty.

If they say no, you can keep the current game as is and either revert the difficulty change or save the new difficulty and apply it to the next game. You can see Killbots for an example of the latter.


- Parker


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/6951/#review10780
-----------------------------------------------------------


On April 29, 2012, 7:51 p.m., Tom Vincent Peters wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://svn.reviewboard.kde.org/r/6951/
> -----------------------------------------------------------
> 
> (Updated April 29, 2012, 7:51 p.m.)
> 
> 
> Review request for KDE Games and Matt Willliams.
> 
> 
> Description
> -------
> 
> Hard AI for KSquares
> Added per player AI difficulty	
> Moved AI settings from normal game to demo mode
> Added player count parameter for demo mode
> 
> known unintentional changes to other AI:
> medium AI probably will do hard-hearted handouts in most cases
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdegames/ksquares/ChangeLog 1292133 
>   /trunk/KDE/kdegames/ksquares/src/aicontroller.h 1292133 
>   /trunk/KDE/kdegames/ksquares/src/aicontroller.cpp 1292133 
>   /trunk/KDE/kdegames/ksquares/src/gameboardscene.cpp 1292133 
>   /trunk/KDE/kdegames/ksquares/src/ksquares.kcfg 1292133 
>   /trunk/KDE/kdegames/ksquares/src/ksquaresdemowindow.h 1292133 
>   /trunk/KDE/kdegames/ksquares/src/ksquaresdemowindow.cpp 1292133 
>   /trunk/KDE/kdegames/ksquares/src/ksquareswindow.cpp 1292133 
>   /trunk/KDE/kdegames/ksquares/src/main.cpp 1292133 
>   /trunk/KDE/kdegames/ksquares/src/newgamewidget.ui 1292133 
>   /trunk/KDE/kdegames/ksquares/src/prefs_ai.ui 1292133 
>   /trunk/KDE/kdegames/ksquares/src/settings.kcfgc 1292133 
> 
> Diff: http://svn.reviewboard.kde.org/r/6951/diff/
> 
> 
> Testing
> -------
> 
> 100 autoplay games medium against hard
> a lot of games against hard ai
> 
> 
> Screenshots
> -----------
> 
> Hard AI move
>   http://svn.reviewboard.kde.org/r/6951/s/631/
> New Game dialog
>   http://svn.reviewboard.kde.org/r/6951/s/632/
> 
> 
> Thanks,
> 
> Tom Vincent Peters
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20120504/5ceaea14/attachment.html>


More information about the kde-games-devel mailing list