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

Diff of /eliot/game/board.cpp

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

revision 1.9 by ipkiss, Fri Nov 4 23:26:03 2005 UTC revision 1.10 by ipkiss, Sat Nov 5 11:01:58 2005 UTC
# Line 155  void Board::addRound(const Dictionary &i Line 155  void Board::addRound(const Dictionary &i
155    
156      row = iRound.getRow();      row = iRound.getRow();
157      col = iRound.getCol();      col = iRound.getCol();
158      if (iRound.getDir() == HORIZONTAL)      if (iRound.getDir() == Coord::HORIZONTAL)
159      {      {
160          for (int i = 0; i < iRound.getWordLen(); i++)          for (int i = 0; i < iRound.getWordLen(); i++)
161          {          {
# Line 196  void Board::removeRound(const Dictionary Line 196  void Board::removeRound(const Dictionary
196    
197      row = iRound.getRow();      row = iRound.getRow();
198      col = iRound.getCol();      col = iRound.getCol();
199      if (iRound.getDir() == HORIZONTAL)      if (iRound.getDir() == Coord::HORIZONTAL)
200      {      {
201          for (int i = 0; i < iRound.getWordLen(); i++)          for (int i = 0; i < iRound.getWordLen(); i++)
202          {          {
# Line 314  int Board::checkRoundAux(Matrix<Tile> &i Line 314  int Board::checkRoundAux(Matrix<Tile> &i
314      if (isolated && !firstturn)      if (isolated && !firstturn)
315          return 5;          return 5;
316      /* The first word must be horizontal */      /* The first word must be horizontal */
317      if (firstturn && iRound.getDir() == VERTICAL)      if (firstturn && iRound.getDir() == Coord::VERTICAL)
318          return 6;          return 6;
319      /* The first word must cover the H8 square */      /* The first word must cover the H8 square */
320      if (firstturn      if (firstturn
# Line 334  int Board::checkRoundAux(Matrix<Tile> &i Line 334  int Board::checkRoundAux(Matrix<Tile> &i
334    
335  int Board::checkRound(Round &iRound, bool firstturn)  int Board::checkRound(Round &iRound, bool firstturn)
336  {  {
337      if (iRound.getDir() == HORIZONTAL)      if (iRound.getDir() == Coord::HORIZONTAL)
338          return checkRoundAux(m_tilesRow, m_crossRow,          return checkRoundAux(m_tilesRow, m_crossRow,
339                               m_pointRow, m_jokerRow,                               m_pointRow, m_jokerRow,
340                               iRound, firstturn);                               iRound, firstturn);
# Line 369  void Board::testRound(const Round &iRoun Line 369  void Board::testRound(const Round &iRoun
369    
370      row = iRound.getRow();      row = iRound.getRow();
371      col = iRound.getCol();      col = iRound.getCol();
372      if (iRound.getDir() == HORIZONTAL)      if (iRound.getDir() == Coord::HORIZONTAL)
373      {      {
374          for (int i = 0; i < iRound.getWordLen(); i++)          for (int i = 0; i < iRound.getWordLen(); i++)
375          {          {

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

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