- use of History class

This commit is contained in:
Antoine Fraboulet 2005-12-26 22:54:02 +00:00
parent 3f4c290745
commit 712ddb5125

View file

@ -77,7 +77,7 @@ void Duplicate::duplicateAI(int n)
ASSERT(!m_players[n]->isHuman(), "AI requested for a human player");
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())
{
@ -182,7 +182,7 @@ void Duplicate::playRound(const Round &iRound, int n)
/* Update the rack and the score of the current player */
player->addPoints(iRound.getPoints());
player->endTurn(iRound, getNTurns());
player->endTurn(iRound, m_history.getSize());
m_hasPlayed[n] = true;
}