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