TicTacToe  1.0.0
TickTackToe.Program Class Reference

Main Class More...

Static Public Member Functions

static void Main (string[] args)
 Start game update loop More...
 
static void drawGame ()
 Draws game or win screen Sets game title More...
 
static void HandleInput ()
 Handles player input More...
 
static void drawField ()
 Prints the field to the console Starts at Position 0/0 Does not clear console! More...
 
static void drawWin (bool? winner)
 Draws win screen More...
 

Static Public Attributes

static Game g = new Game()
 Current game. Starts new game at startup. More...
 

Detailed Description

Main Class

Definition at line 13 of file Program.cs.

Member Function Documentation

◆ 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
winnerfalse: 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
consoleKeyInfoENTER / 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
args

Definition at line 68 of file Program.cs.

Member Data Documentation

◆ g

Game TickTackToe.Program.g = new Game()
static

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: