public int Translate(Pos p)
 {
     return(p.x + p.y * width);
 }
Esempio n. 2
0
 public King(Type type, int owner, Pos pos, Pos dir) : base(type, owner, pos, dir)
 {
 }
 public bool InBoard(Pos p)
 {
     return(p.x >= 0 && p.y >= 0 && p.x < width && p.y < height);
 }