[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] eliot/game freegame.cpp
From: |
eliot-dev |
Subject: |
[Eliot-dev] eliot/game freegame.cpp |
Date: |
Mon, 26 Dec 2005 22:58:19 +0000 |
CVSROOT: /cvsroot/eliot
Module name: eliot
Branch:
Changes by: Antoine Fraboulet <address@hidden> 05/12/26 22:58:19
Modified files:
game : freegame.cpp
Log message:
- use History class
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/eliot/game/freegame.cpp.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
Patches:
Index: eliot/game/freegame.cpp
diff -u eliot/game/freegame.cpp:1.15 eliot/game/freegame.cpp:1.16
--- eliot/game/freegame.cpp:1.15 Fri Dec 23 22:19:22 2005
+++ eliot/game/freegame.cpp Mon Dec 26 22:58:19 2005
@@ -65,7 +65,7 @@
/* Update the rack and the score of the current player */
m_players[m_currPlayer]->addPoints(round.getPoints());
- m_players[m_currPlayer]->endTurn(round, getNTurns());
+ m_players[m_currPlayer]->endTurn(round, m_history.getSize());
/* Everything is OK, we can play the word */
helperPlayRound(round);
@@ -85,7 +85,7 @@
AIPlayer *player = static_cast<AIPlayer*>(m_players[n]);
- player->compute(*m_dic, m_board, getNTurns());
+ player->compute(*m_dic, m_board, m_history.getSize());
if (player->changesLetters())
{
helperPass(player->getChangedLetters(), n);
@@ -96,7 +96,7 @@
const Round &round = player->getChosenRound();
/* Update the rack and the score of the current player */
player->addPoints(round.getPoints());
- player->endTurn(round, getNTurns());
+ player->endTurn(round, m_history.getSize());
helperPlayRound(round);
endTurn();