bool Start() { ChessGame chessGame = new ChessGame(); Console.WriteLine("This chess game does not allow En Passant or Castling.\nThe game is won by capturing the king instead of getting checkmate.\nTherefore you can put your own king in check.\n"); chessGame.InitChessboard(); DisplayChessboard(chessGame); PlayChess(chessGame); return(ProgramTools.LoopGame()); }
bool Start() { string player1Name = ReadTools.ReadString("Player 1 (name): "); string player2Name = ReadTools.ReadString("Player 2 (name): "); Player player1 = new Player(player1Name); Player player2 = new Player(player2Name); WarCardGame war = new WarCardGame(player1, player2); PlayTheGame(war); return(ProgramTools.LoopGame()); }
bool Start() { YahtzeeGame yahtzeeGame = new YahtzeeGame(); yahtzeeGame.Throw(); yahtzeeGame.DisplayValues(); yahtzeeGame.Throw(); yahtzeeGame.DisplayValues(); Console.WriteLine(); PlayYahtzee(yahtzeeGame); return(ProgramTools.LoopGame()); }
bool Start() { HangmanGame hangman = new HangmanGame(); List <string> words = new List <string>(); words = ListOfWords(); string secretWord = SelectWord(words); hangman.Init(secretWord); if (PlayHangman(hangman)) { Console.WriteLine("You guessed the word!"); } else { Console.WriteLine("You didn't guess the word..."); Console.WriteLine($"The secret word was: {hangman.secretWord}"); } return(ProgramTools.LoopGame()); }