[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-games-devel
Subject: Re: [Kde-games-devel] Review Request 113054: Finally, implement a way to not shoot at places the AI
From: "Albert Astals Cid" <aacid () kde ! org>
Date: 2013-10-02 18:32:34
Message-ID: 20131002183234.12085.54700 () vidsolbach ! de
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
-----------------------------------------------------------
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
>
>
[Attachment #5 (text/html)]
<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;"> <tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/113054/">http://git.reviewboard.kde.org/r/113054/</a>
</td>
</tr>
</table>
<br />
<div>
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;"> <thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;"> <a \
href="http://git.reviewboard.kde.org/r/113054/diff/2/?file=193628#file193628line47" \
style="color: black; font-weight: bold; text-decoration: \
underline;">src/aientity.cpp</a> <span style="font-weight: normal;">
(Diff revision 2)
</span>
</th>
</tr>
</thead>
<tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
<tr>
<td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; \
">AIEntity::~AIEntity()</pre></td>
</tr>
</tbody>
<tbody>
<tr>
<th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th> <td bgcolor="#c5ffc4" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td> <th \
bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid \
#C0C0C0;" align="right"><font size="2">47</font></th> <td bgcolor="#c5ffc4" \
width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span \
class="k">if</span> <span class="p">(</span><span class="n">m_level</span> <span \
class="o">==</span> <span class="n">COMPAT_KBS4</span> <span \
class="o">&&</span></pre></td> </tr>
</tbody>
</table>
<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">playerentity was KBS3 and this is KBS4, i've no clue what they mean, \
but just mentioning to make you double check :D</pre> </div>
<br />
<div>
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; \
border-collapse: collapse; margin: 2px padding: 2px;"> <thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; \
font-size: 9pt; padding: 4px 8px; text-align: left;"> <a \
href="http://git.reviewboard.kde.org/r/113054/diff/2/?file=193629#file193629line110" \
style="color: black; font-weight: bold; text-decoration: \
underline;">src/playerentity.cpp</a> <span style="font-weight: normal;">
(Diff revision 2)
</span>
</th>
</tr>
</thead>
<tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
<tr>
<td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void \
PlayerEntity::hit(Shot* shot)</pre></td>
</tr>
</tbody>
<tbody>
<tr>
<th bgcolor="#ebb1ba" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2">110</font></th> <td bgcolor="#ffc5ce" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="c1">// add a \
border around sunk ship in KBS3 mode</span></pre></td> <th bgcolor="#ebb1ba" \
style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" \
align="right"><font size="2"></font></th> <td bgcolor="#ffc5ce" width="50%"><pre \
style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td> </tr>
</tbody>
</table>
<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Why is this \
gone?</pre> </div>
<br />
<p>- Albert Astals Cid</p>
<br />
<p>On October 2nd, 2013, 4:44 p.m. UTC, Jaime Torres Amate wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;"> <tr>
<td>
<div>Review request for KDE Games and Roney Gomes.</div>
<div>By Jaime Torres Amate.</div>
<p style="color: grey;"><i>Updated Oct. 2, 2013, 4:44 p.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>
<a href="http://bugs.kde.org/show_bug.cgi?id=318594">318594</a>
</div>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
knavalbattle
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">(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.</pre> </td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0"> <tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">played a lot against the AI, it does not use the cells around a sunk \
ship. </pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>src/ai/smartai.cpp <span style="color: grey">(37021a8)</span></li>
<li>src/aientity.cpp <span style="color: grey">(c8fa775)</span></li>
<li>src/playerentity.cpp <span style="color: grey">(8c7bf16)</span></li>
<li>src/sea.h <span style="color: grey">(c68f348)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/113054/diff/" style="margin-left: \
3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>
_______________________________________________
kde-games-devel mailing list
kde-games-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-games-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic