Ejemplo n.º 1
0
 public Game(Chessboard chessboard,Player player)
 {
     this.Chessboard = chessboard;
     this.Player = player;
 }
Ejemplo n.º 2
0
 public static Game CreateGame(Player player, Chessboard chessboard)
 {
     return new Game(chessboard, player);
 }
Ejemplo n.º 3
0
 public static Game ContinueGame(Player player, string gameNumber)
 {
     var game = UnFinishedGames.Single(g => g.Player.Equals(player) && g.GameNumber == gameNumber);
     return game;
 }
Ejemplo n.º 4
0
 public static Game CreateGame(Player player, string chessManualNumber)
 {
     var chessboard = ChessboardFactory.CreateChessboard(chessManualNumber);
     return new Game(chessboard, player);
 }
Ejemplo n.º 5
0
 protected bool Equals(Player other)
 {
     return string.Equals(this.Name, other.Name);
 }