Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package edu.learn.rest.model;
- public class TicTacToe {
- private String game;
- private boolean isWinner;
- private int []position = new int[3];
- private String whoWon;
- public TicTacToe(boolean isWinner, int []pos, String whoWon, String game) {
- super();
- this.game = game;
- this.isWinner = isWinner;
- this.position= pos;
- this.whoWon = whoWon;
- }
- public boolean isWinner() {
- return isWinner;
- }
- public void setWinner(boolean isWinner) {
- this.isWinner = isWinner;
- }
- public int[] getPosition() {
- return position;
- }
- public void setPosition(int[] position) {
- this.position = position;
- }
- public String getWhoWon() {
- return whoWon;
- }
- public void setWhoWon(String whoWon) {
- this.whoWon = whoWon;
- }
- public String getGame() {
- return game;
- }
- public void setGame(String game) {
- this.game = game;
- }
- }
Add Comment
Please, Sign In to add comment