Esempio n. 1
0
 /// <summary>
 /// This is a constructor for the view, calling controller's startGame() to deal cards
 /// </summary>
 public UnoView()
 {
     model      = new UnoModel();
     controller = new UnoController(model);
     controller.StartGame();
     errorMessage = "";
 }
Esempio n. 2
0
 /// <summary>
 /// A constructor for the controller, which takes a model to store
 /// </summary>
 /// <param name="model">The model to store and do all operations on</param>
 public UnoController(UnoModel model)
 {
     this.model    = model;
     currentPlayer = 0;
     isReverse     = false;
     isGameOver    = false;
 }