Esempio n. 1
0
 /// <summary>
 /// Constructor with initialising parameters.
 /// Pre:  none.
 /// Post: the form is initialised, ready for the game to start.
 /// </summary>
 public HareAndTortoiseForm()
 {
     InitializeComponent();
     hareAndTortoiseGame.NumberOfPlayers = HareAndTortoiseGame.MAX_PLAYERS;             // Max players, by default.
     hareAndTortoiseGame.InitialiseAllThePlayers();
     SetupTheGui();
     ResetGame();
 }
 /// <summary>
 /// Constructor with initialising parameters.
 /// Pre:  none.
 /// Post: the form is initialised, ready for the game to start.
 /// </summary>
 public HareAndTortoiseForm()
 {
     InitializeComponent();
     HareAndTortoiseGame.NumberOfPlayers = HareAndTortoiseGame.MAX_PLAYERS; // Max players, by default.
     HareAndTortoiseGame.InitialiseAllThePlayers();
     Board.SetUpBoard();
     SetupTheGui();
     ResetGame();
 } // end form constructor