[Kde-games-devel] Review Request 113054: Finally, implement a way to not shoot at places the AI already knows there are no ships.

Jaime Torres Amate jtamate at gmail.com
Fri Oct 18 16:19:57 UTC 2013


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

(Updated Oct. 18, 2013, 4:19 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDE Games and Roney Gomes.


Bugs: 318594
    http://bugs.kde.org/show_bug.cgi?id=318594


Repository: knavalbattle


Description
-------

(the red spaces are already gone)
Move the addBorder to the AI entity. When notify is called after a shoot, and an opponent ship is sunk, mark the surrounding cells as border, therefore, the AI will not try them in the future.
Added a getter for the adjacent ships property.


Diffs
-----

  src/ai/smartai.cpp 37021a8 
  src/aientity.cpp c8fa775 
  src/playerentity.cpp 8c7bf16 
  src/sea.h c68f348 

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


Testing
-------

played a lot against the AI, it does not use the cells around a sunk ship.


Thanks,

Jaime Torres Amate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20131018/77a39d4b/attachment.html>


More information about the kde-games-devel mailing list