}
};
-static char * dicos[Languages] = { ":englishWords.txt", ":frenchWords.txt" };
+static const char * dicos[Languages] = { ":englishWords.txt", ":frenchWords.txt" };
class CrossWordsGame
{
void GetTiles(int tilesPlayer, PlayedMove move)
{
Player player = players[tilesPlayer];
- int c;
move.numTiles = 0;
while(player.numLetters < 7 && numLettersAvailable)
}
}
- void LoadWords(char * fileName)
+ void LoadWords(const char * fileName)
{
File f = FileOpen(fileName, read);
if(f)
if(letter == blank)
letter = blankValues[y][x];
- word[len++] = (char)letter + 'a';
+ word[len++] = (char)(letter + 'a');
}
word[len] = 0;
found = dictionary.Find(word) != null;
int numLetters = 0;
Direction direction = horizontal;
- int wordX;
- int wordY;
+ //int wordX;
+ //int wordY;
int firstX = MAXINT, lastX = MININT;
int firstY = MAXINT, lastY = MININT;
int first, last, where;
{
if(board[y][x] == empty && newBoard[y][x] != empty)
{
- wordX = x;
- wordY = y;
+ //wordX = x;
+ //wordY = y;
if(x < firstX) firstX = x;
if(y < firstY) firstY = y;
if(x > lastX) lastX = x;