public static void NewGameBoard() { // Set Switches Engine.Initilise(); GameState.rungame = true; GameState.loopInput = true; GameState.drawEmptyBoard = false; GameState.drawStartScreen = false; GameState.drawScoreBoard = false; ConsoleBuffer.NewGameBoard(); PrintBuffer.PrintNewFrame(); }
//************************************************** //************* Start of Game Switches ************* //************************************************** // This loads the very 1st screen.. the "Start Screen" public static void DrawStartScreen() { // Set Switches GameState.drawStartScreen = true; GameState.drawEmptyBoard = true; GameState.loopInput = false; GameState.rungame = false; GameState.drawScoreBoard = false; GameState.drawGameOver = false; ConsoleBuffer.NewGame(); PrintBuffer.PrintStartFrame(); UserInput.StartOrQuitGame(); }
// This is the main drawing function to pace the player tokens on the board. // The majority of the game happens here. public static void PlaceToken(int num) { ConsoleBuffer.PlaceToken(num, player); PrintBuffer.PlaceToken(); }
public static void ScoreBoardScreen() { ConsoleBuffer.Results(GameState.winner); PrintBuffer.PrintScore(); UserInput.ScoreBoardScreen(); }
public static void GameOver() { ConsoleBuffer.GameOver(); PrintBuffer.PrintNewFrame(); }
//****************************************** //************* Game Functions ************* //****************************************** public static void PlayGame() { PrintBuffer.PrintUserInput(); UserInput.Input(); }