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();
     }
 }
示例#2
0
 public Pieces(posType pType, posSide pSide)
 {
     this.side = pSide.ToString();
     this.type = pType.ToString();
 }