Browse Source

Refactor Fieldtype declarations

AIPlayer
Felix Krull 3 years ago
parent
commit
42e004f0a9
  1. 16
      src/main/java/Gameboard.java

16
src/main/java/Gameboard.java

@ -6,14 +6,14 @@ public class Gameboard {
}
public void initGameboard (){
board[0] = 1;
board[10] = 1;
board[20] = 1;
board[30] = 1;
board[9] = 2;
board[19] = 2;
board[29] = 2;
board[39] = 2;
for(int i = 0; i < 40; i++) {
if ( i % 10 == 0) {
board[i] = 1;
}
if( i % 10 == 9) {
board[i] = 2;
}
}
for (int i = 40; i < board.length; i++) {
board[i] = 3;
}

Loading…
Cancel
Save