Exemplo n.º 1
0
 public ChessMoveParser(
     IChessMoveParser <MoveResignDto> resignParser,
     IChessMoveParser <MoveCastleDto> castleParser,
     IChessMoveParser <MovePromotionDto> promotionParser,
     IChessMoveParser <MovePieceDto> pieceParser)
 {
     _resignParser    = resignParser;
     _castleParser    = castleParser;
     _promotionParser = promotionParser;
     _pieceParser     = pieceParser;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of Game
 /// </summary>
 /// <param name="actorService">The Microsoft.ServiceFabric.Actors.Runtime.ActorService that will host this actor instance.</param>
 /// <param name="actorId">The Microsoft.ServiceFabric.Actors.ActorId for this actor instance.</param>
 public Game(ActorService actorService, ActorId actorId,
             IChessMoveParser moveParser
             ) : base(actorService, actorId)
 {
     _moveParser = moveParser;
 }