public GameSettingsViewModel(WindowViewModel parent)
 {
     this.Parent        = parent;
     this.CurrentPlayer = ReversiGame.CurrentPlayer;
     this.WhitePoints   = ReversiGame.Board.CountStones(Player.WHITE);
     this.BlackPoints   = ReversiGame.Board.CountStones(Player.BLACK);
     this.IsGameOver    = "";
     this.WindowHeight  = 500;
     this.WindowWidth   = 750;
 }
Exemple #2
0
 public BoardViewModel(WindowViewModel parent)
 {
     this.Undoing  = false;
     this.Parent   = parent;
     this.OldGames = new List <ReversiGame>();
     this.Rows     = new List <BoardRowViewModel>();
     for (int i = 0; i < ReversiBoard.Height; i++)
     {
         Rows.Add(new BoardRowViewModel(this, i));
     }                                                                                          //initalize rows
 }