Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int[] newboard = new int[25];
- int j = 0;
- for (int i=0; i<25;i=++){
- char state = boardAsString.charAt(i);
- if (j < 25){
- if (state == 'O'){
- newboard[j] = 0;
- j += 5;
- }
- else
- newboard[j]=1;
- j +=5;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement