public void setPosPieces(posType type, posSide side, int x, int y) { if (x < 0 || x > 9 || y < 0 || y > 10) { MessageBox.Show("error setPosPieces out of range"); } else { board[x][y][0] = type.ToString(); board[x][y][1] = side.ToString(); } }
public Pieces(posType pType, posSide pSide) { this.side = pSide.ToString(); this.type = pType.ToString(); }