class Ender implements Player { private long played,won; public long gamesPlayed() { return played; } public long gamesWon() { return won; } public void reset() { played = won = 0; } public int makeMove(State state) { int play = Math.abs(31-state.currentNum-1)%6; while (state.cards[play]<1) { play = (int)(Math.random()*6); } return play; } public void onStart(State state) { } public void onEnd(State state) { if (!(this == state.loser)) won++; played++; } public void onOpponentMove(State state) { } public void onYourMove(State state) { } }