Bug 318594

Summary: The AI is not smart enough
Product: [Applications] knavalbattle Reporter: Jaime Torres <jtamate>
Component: generalAssignee: Roney Gomes <roney477>
Severity: normal CC: kde-games-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 4.12

Description Jaime Torres 2013-04-19 15:27:36 UTC
The AI is trying between the ships in the case there is no ship adjacent.

Reproducible: Always

Expected Results:  
Do not try where it is sure there will be no ships.

I hope to have time to fix it.
Comment 1 Jaime Torres 2013-10-18 16:19:51 UTC
Git commit c6990c5f4f429157c244b9f149d1b5f6ba0bfe3d by Jaime Torres.
Committed on 18/10/2013 at 16:17.
Pushed by jtamate into branch 'master'.

make the AI smarter to not shoot at places it knows there are no ships

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.
FIXED-IN: 4.12
REVIEW: 113054

M  +1    -0    src/ai/smartai.cpp
M  +10   -0    src/aientity.cpp
M  +0    -7    src/playerentity.cpp
M  +1    -0    src/sea.h