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); |
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 |
|
|
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 |
|
|