From 157bd4f60635dc27d2c9baebea5589455b05f17b Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Wed, 25 May 2011 15:51:34 +0200 Subject: Tested and implemented scoring git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@272 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/model/MockRoundState.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mock') diff --git a/mock/jrummikub/model/MockRoundState.java b/mock/jrummikub/model/MockRoundState.java index ee483c6..1ebc575 100644 --- a/mock/jrummikub/model/MockRoundState.java +++ b/mock/jrummikub/model/MockRoundState.java @@ -104,4 +104,13 @@ public class MockRoundState implements IRoundState { } activePlayer = j; } + + @Override + public IPlayer getNthPlayer(int i) { + int j = i % players.size(); + if (j < 0) { + j += players.size(); + } + return players.get(j); + } } -- cgit v1.2.3