Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Generates a dictionary that converts a textual position to indexes in board
- */
- private void generatePositionToIntsDictionary() {
- for(int row = 0; row<8; row++){
- for(char c : "ABCDEFGH".toCharArray()){
- positionToIntsDictionary.put(c + Integer.toString(8-row),row + "," + ((int) c - 65));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement