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

Albert Astals Cid aacid at kde.org
Wed Oct 2 18:32:34 UTC 2013


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



src/aientity.cpp
<http://git.reviewboard.kde.org/r/113054/#comment30180>

    playerentity was KBS3 and this is KBS4, i've no clue what they mean, but just mentioning to make you double check :D



src/playerentity.cpp
<http://git.reviewboard.kde.org/r/113054/#comment30179>

    Why is this gone?


- Albert Astals Cid


On Oct. 2, 2013, 4:44 p.m., Jaime Torres Amate wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/113054/
> -----------------------------------------------------------
> 
> (Updated Oct. 2, 2013, 4:44 p.m.)
> 
> 
> 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/20131002/67345770/attachment.html>


More information about the kde-games-devel mailing list