public static GameMove CreateFrom(Enums.PlayerType owner, BoardPosition position)
 {
     var move = new GameMove
     {
         Id = Guid.NewGuid(),
         Owner = owner,
         Position = position
     };
     return move;
 }
 public GameMove Build(Enums.PlayerType owner, BoardPosition position)
 {
     var move = new GameMove
     {
         Id = _id,
         Owner = owner,
         Position = position
     };
     return move;
 }
Esempio n. 3
0
 public void AddMove(GameMove move)
 {
     Moves.Add(move);
 }
 public void AssignMove(Game game, GameMove gameMove, RepositoryDelegates.SaveGame saveGame)
 {
     game.AddMove(gameMove);
     saveGame(game);
 }