mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-11-17 07:48:27 +01:00
- use of History class
This commit is contained in:
parent
3f4c290745
commit
712ddb5125
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue