[Kde-games-devel] Review Request 111705: Testcode for hard AI for KSquares

Tom Vincent Peters kde at vincent-peters.de
Thu Jul 25 23:22:42 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/111705/
-----------------------------------------------------------

Review request for KDE Games and Matt Williams.


Description
-------

This is meant to test whether the new (hard) AI code has changed the medium AI strength in KSquares as a side effect. 
Hard AI code: https://git.reviewboard.kde.org/r/111662/

This is not supposed to be comitted, it's just for testing purposes.

Use by calling KSquares from command line in demo mode 'ksquares --demo'.

Changes:
- old and new ai code side by side
- changed demo mode to two player mode
- speed up of demo mode
- most debug messages commented out
- overall game score for statistics

Changes not included:
- changed playing position of old and new AI

Result:
- the new code for the hard AI doesn't seem to change the strength of the medium AI.
- AI playing in second position has a strong advantage


Diffs
-----

  src/aicontroller.h beaafa8 
  src/aicontroller.cpp 0bff5e6 
  src/gameboardscene.cpp 0fa669a 
  src/ksquaresdemowindow.cpp eea7e5a 
  src/ksquaresgame.h ca4fe8b 
  src/ksquaresgame.cpp 74a06d3 
  src/ksquareswindow.cpp 092c795 

Diff: http://git.reviewboard.kde.org/r/111705/diff/


Testing
-------

Seems like the second player has a serious advantage:

ksquares(18337) KSquaresDemoWindow::gameOver: Game Over
ksquares(18337) KSquaresGame::playerSquareComplete: Player 1 won
ksquares(18337) KSquaresGame::playerSquareComplete: Player 0 ( oldAI ) won 391 times
ksquares(18337) KSquaresGame::playerSquareComplete: Player 1 ( newAI ) won 1314 times

ksquares(17513) KSquaresDemoWindow::gameOver: Game Over
ksquares(17513) KSquaresGame::playerSquareComplete: Player 1 won
ksquares(17513) KSquaresGame::playerSquareComplete: Player 0 ( newAI ) won 288 times
ksquares(17513) KSquaresGame::playerSquareComplete: Player 1 ( oldAI ) won 1008 times


Thanks,

Tom Vincent Peters

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20130725/28e223f4/attachment.html>


More information about the kde-games-devel mailing list