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