예제 #1
0
 public void AddPiece(Piece p, Coordinates coords)
 {
     if (!DoesPositionGoOffBoard(coords))
     {
         TileGrid[coords.X, coords.Y].CurrentPiece = p;
     }
 }
예제 #2
0
 public void AddPiece(Piece p, int xPos, int yPos)
 {
     AddPiece(p, new Coordinates(xPos, yPos));
 }
예제 #3
0
 public Coordinates GetPositionOf(Piece piece)
 {
     //TODO
     throw new NotImplementedException();
 }
예제 #4
0
 private Task SavePieceVariantAsync(Piece piece)
 {
     return _client.CreateDocumentAsync(_piecesCollectionUri, piece);
 }
예제 #5
0
 public void SavePieceVariant(Piece p)
 {
     SavePieceVariantAsync(p as Piece).Wait();
 }
예제 #6
0
 public static void SavePiece(Piece p)
 {
     _ds.SavePieceVariant(p);
 }