Пример #1
0
        }                                     // returns cooridantes of the picturebox clicked

        private bool DidIWin()
        {
            if (Classes.Soldier.countPlayer2 == 0)
            {
                MessageBox.Show("YOU WIN");
                win = true;
                this.Close();
                Forms.EndGameScreen c = new Forms.EndGameScreen();
                c.Show();
                return(true);
            }
            return(false);
        }
Пример #2
0
 private void DidILose()
 {
     if (player1Soldiers.Count == 0)
     {
         MessageBox.Show("YOU LOSE");
         this.Close();
         Forms.EndGameScreen c = new Forms.EndGameScreen();
         c.Show();
     }
     else
     {
         LogOfMoves.Text   += "\nYour turn\n";
         finiteStateMachine = "playersTurn";
     }
 }