rp-scrabble
Simple, terminal-based Scrabble game
main.cc
Go to the documentation of this file.
1 
4 #ifdef DEBUG
5 
6 #include <iostream>
7 #include "game.h"
8 #include "board.h"
9 #include "utils.h"
10 
11 void testGame();
12 void testBoard();
13 
14 int main()
15 {
16  testGame();
17  return 0;
18 }
19 
20 void testGame()
21 {
22  Game g;
23  g.run();
24 }
25 
26 void testBoard()
27 {
28  Board b;
29  b.show();
30 }
31 
32 #else
33 
34 #include "game.h"
35 
36 int main()
37 {
38  Game newGame;
39  newGame.run();
40 
41  return 0;
42 }
43 
44 #endif
Definition: board.h:20
void show()
Definition: board.cc:121
Definition: game.h:17
void run()
Definition: game.cc:363
int main()
Definition: main.cc:36