From 6f14e34fe7ba178d77d8b7ee17c79c16daee58d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Thu, 12 Mar 2009 18:56:25 +0000 Subject: [PATCH] Allow the first word to be vertical --- game/board.cpp | 4 ++++ game/game.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/game/board.cpp b/game/board.cpp index f6dff53..6d0fe50 100644 --- a/game/board.cpp +++ b/game/board.cpp @@ -353,8 +353,12 @@ int Board::checkRoundAux(const Matrix &iTilesMx, if (isolated && !m_isEmpty) return 5; // The first word must be horizontal + // Deactivated, as a vertical first word is allowed in free games, + // and possibly in duplicate games as well (it depends on the sources) +#if 0 if (m_isEmpty && iRound.getCoord().getDir() == Coord::VERTICAL) return 6; +#endif // The first word must cover the H8 square if (m_isEmpty && (row != 8 || col > 8 || col + iRound.getWordLen() <= 8)) diff --git a/game/game.h b/game/game.h index 1129f0d..bb2c58a 100644 --- a/game/game.h +++ b/game/game.h @@ -160,7 +160,7 @@ public: * 7: invalid crosscheck * 8: word already present on the board (no new letter from the rack) * 9: isolated word (not connected to the rest) - * 10: first word not horizontal + * (10: first word not horizontal) <-- this one has been deactivated * 11: first word not covering the H8 square * 12: word going out of the board */