Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Cell shot2() {
- final char[] userInput = Utils.readLineThroughKeyboard();
- int row = userInput[0] - 'A';
- int column = userInput[1] - '0' - 1;
- if (userInput.length > 2) {
- column = 9 + (userInput[2] - '0');
- }
- return new Cell(row, column);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement