Advertisement
mikhail_dvorkin

Untitled

Feb 18th, 2017
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public class GameModel {
  2. private boolean[][] field;
  3.  
  4. public GameModel() {
  5. field = new boolean[4][4];
  6. field[1][2] = true;
  7. }
  8.  
  9. public boolean[][] getField() {
  10. return field;
  11. }
  12.  
  13. public void makeMove(int x, int y) {
  14. field[3 - x][3 - y] = true;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement