Main Class
More...
Main Class
Definition at line 13 of file Program.cs.
◆ drawField()
| static void TickTackToe.Program.drawField |
( |
| ) |
|
|
static |
Prints the field to the console Starts at Position 0/0 Does not clear console!
Definition at line 155 of file Program.cs.
◆ drawGame()
| static void TickTackToe.Program.drawGame |
( |
| ) |
|
|
static |
Draws game or win screen Sets game title
Definition at line 82 of file Program.cs.
◆ drawWin()
| static void TickTackToe.Program.drawWin |
( |
bool? |
winner | ) |
|
|
static |
Draws win screen
- Parameters
-
| winner | false: Player 1 is winner true: Player 2 is winner null: Draw |
Definition at line 188 of file Program.cs.
◆ HandleInput()
| static void TickTackToe.Program.HandleInput |
( |
| ) |
|
|
static |
Handles player input
- Parameters
-
| consoleKeyInfo | ENTER / SPACEBAR: Place marker on board ARROW / WASD / NUMPAD: Move cursor F5 Start new game |
Definition at line 103 of file Program.cs.
◆ Main()
| static void TickTackToe.Program.Main |
( |
string [] |
args | ) |
|
|
static |
Start game update loop
- Parameters
-
Definition at line 68 of file Program.cs.
Current game. Starts new game at startup.
Definition at line 18 of file Program.cs.
The documentation for this class was generated from the following file:
- C:/Users/lasse/Documents/Visual Studio 2015/Projects/TickTackToe/TickTackToe/Program.cs