From 4881a63f75d880ca54df26ec992338e1d207f74d Mon Sep 17 00:00:00 2001 From: Antoine Fraboulet Date: Mon, 26 Dec 2005 22:58:19 +0000 Subject: [PATCH] - use History class --- game/freegame.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/freegame.cpp b/game/freegame.cpp index 81cd9ca..a86ba7a 100644 --- a/game/freegame.cpp +++ b/game/freegame.cpp @@ -65,7 +65,7 @@ int FreeGame::play(const string &iCoord, const string &iWord) /* 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 @@ void FreeGame::freegameAI(int n) AIPlayer *player = static_cast(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 @@ void FreeGame::freegameAI(int n) 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();