Guest User

Untitled

a guest
Nov 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. package edu.learn.rest.model;
  2.  
  3. public class TicTacToe {
  4. private String game;
  5. private boolean isWinner;
  6. private int []position = new int[3];
  7. private String whoWon;
  8. public TicTacToe(boolean isWinner, int []pos, String whoWon, String game) {
  9. super();
  10. this.game = game;
  11. this.isWinner = isWinner;
  12. this.position= pos;
  13. this.whoWon = whoWon;
  14.  
  15.  
  16. }
  17. public boolean isWinner() {
  18. return isWinner;
  19. }
  20. public void setWinner(boolean isWinner) {
  21. this.isWinner = isWinner;
  22. }
  23. public int[] getPosition() {
  24. return position;
  25. }
  26. public void setPosition(int[] position) {
  27. this.position = position;
  28. }
  29. public String getWhoWon() {
  30. return whoWon;
  31. }
  32. public void setWhoWon(String whoWon) {
  33. this.whoWon = whoWon;
  34. }
  35. public String getGame() {
  36. return game;
  37. }
  38. public void setGame(String game) {
  39. this.game = game;
  40. }
  41.  
  42. }
Add Comment
Please, Sign In to add comment