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

Diff of /eliot/game/training.cpp

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

revision 1.10 by ipkiss, Sat Nov 5 15:48:59 2005 UTC revision 1.11 by ipkiss, Sat Nov 5 23:22:42 2005 UTC
# Line 51  int Training::play(const string &iCoord, Line 51  int Training::play(const string &iCoord,
51    
52      /* Update the rack and the score of the current player */      /* Update the rack and the score of the current player */
53      m_players[m_currPlayer]->addPoints(round.getPoints());      m_players[m_currPlayer]->addPoints(round.getPoints());
54      m_players[m_currPlayer]->endTurn(round, getNRounds());      m_players[m_currPlayer]->endTurn(round, getNTurns());
55    
56      /* Everything is OK, we can play the word */      /* Everything is OK, we can play the word */
57      helperPlayRound(round);      helperPlayRound(round);
# Line 126  void Training::search() Line 126  void Training::search()
126      // Search for the current player      // Search for the current player
127      Rack r;      Rack r;
128      m_players[m_currPlayer]->getCurrentRack().getRack(r);      m_players[m_currPlayer]->getCurrentRack().getRack(r);
129      m_results.search(*m_dic, m_board, r, getNRounds());      m_results.search(*m_dic, m_board, r, getNTurns());
130  }  }
131    
132    
# Line 139  int Training::playResult(int n) Line 139  int Training::playResult(int n)
139    
140      /* Update the rack and the score of the current player */      /* Update the rack and the score of the current player */
141      player->addPoints(round.getPoints());      player->addPoints(round.getPoints());
142      player->endTurn(round, getNRounds());      player->endTurn(round, getNTurns());
143    
144      int res = helperPlayRound(round);      int res = helperPlayRound(round);
145    

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