Esempio n. 1
0
 // returns string representation of the row of val - human represented so from bottom to top
 // ["1"-"8"]
 public static String rowToString(final int val) {
   return "" + (8 - Pos.row(val));
 }
Esempio n. 2
0
 // returns string representation of the value; ie "d5"
 // @val positional value [0-63] - no check on valid range
 public static String toString(final int val) {
   return "" + ((char) (Pos.col(val) + (int) 'a')) + "" + (8 - Pos.row(val));
 }