Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public State movePawn(State s, String move, boolean isWhite) {
- char[] movesss = translateMove(move);
- //This function updates the state after the move
- int x1 = Character.getNumericValue(movesss[0]);
- int y1 = Character.getNumericValue(movesss[1]);
- int x2 = Character.getNumericValue(movesss[2]);
- int y2 = Character.getNumericValue(movesss[3]);
- int[] nextState = new int[4];
- nextState[0] = x1;
- nextState[1] = y1;
- nextState[2] = x2;
- nextState[3] = y2;
- //s.updateState(nextState, isWhite);
- return s;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement