Back to project page rock-paper-scissors.
The source code is released under:
MIT License
If you think the Android project rock-paper-scissors 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 au.com.codeka.rps.game; //from w w w . j a v a2s .co m /** * Information about a match currently in progress. */ public class MatchInfo { private final String matchId; private final String playerId; private final String otherPlayerId; private int currentRound; public MatchInfo(String matchId, String playerId, String otherPlayerId) { this.matchId = matchId; this.playerId = playerId; this.otherPlayerId = otherPlayerId; this.currentRound = 1; } public String getMatchId() { return matchId; } public String getPlayerId() { return playerId; } public int getRound() { return currentRound; } public void nextRound() { currentRound ++; } }