/[eliot]/eliot/game/duplicate.cpp
ViewVC logotype

Diff of /eliot/game/duplicate.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by ipkiss, Fri Nov 4 20:00:06 2005 UTC revision 1.11 by ipkiss, Sat Nov 5 23:22:42 2005 UTC
# Line 77  void Duplicate::duplicateAI(int n) Line 77  void Duplicate::duplicateAI(int n)
77      ASSERT(!m_players[n]->isHuman(), "AI requested for a human player");      ASSERT(!m_players[n]->isHuman(), "AI requested for a human player");
78    
79      AIPlayer *player = static_cast<AIPlayer*>(m_players[n]);      AIPlayer *player = static_cast<AIPlayer*>(m_players[n]);
80      player->compute(*m_dic, m_board, getNRounds());      player->compute(*m_dic, m_board, getNTurns());
81    
82      if (player->changesLetters())      if (player->changesLetters())
83      {      {
# Line 182  void Duplicate::playRound(const Round &i Line 182  void Duplicate::playRound(const Round &i
182    
183      /* Update the rack and the score of the current player */      /* Update the rack and the score of the current player */
184      player->addPoints(iRound.getPoints());      player->addPoints(iRound.getPoints());
185      player->endTurn(iRound, getNRounds());      player->endTurn(iRound, getNTurns());
186    
187      m_hasPlayed[n] = true;      m_hasPlayed[n] = true;
188  }  }

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26