Back to project page android-checkers-app.
The source code is released under:
Apache License
If you think the Android project android-checkers-app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package edu.unlv.sudo.checkers.model; //from ww w. ja v a 2 s . co m import org.codehaus.jackson.annotate.JsonCreator; import org.codehaus.jackson.annotate.JsonProperty; import java.util.Iterator; import java.util.List; import edu.unlv.sudo.checkers.model.exception.InvalidMoveException; import edu.unlv.sudo.checkers.model.exception.OutOfTurnException; /** * This class represents a game of checkers. */ public class Game { private String id; private Board board; private Team turn; @JsonCreator public Game(@JsonProperty("id") final String id, @JsonProperty("board") final Board board, @JsonProperty("turn") final Team turn) { this.id = id; this.board = board; this.turn = turn; } public Board getBoard() { return board; } public Team getTurn() { return turn; } public String getId() { return id; } public void clearTurn() { this.turn = null; } }