From 6ed7eb60d54f0fa726fba8410547cd4bb0b6c46a Mon Sep 17 00:00:00 2001 From: Andy Janata Date: Tue, 31 Jan 2012 00:01:52 -0800 Subject: [PATCH] pick a random judge to start the game --- src/net/socialgamer/cah/data/Game.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/net/socialgamer/cah/data/Game.java b/src/net/socialgamer/cah/data/Game.java index 057ee83..29ada18 100644 --- a/src/net/socialgamer/cah/data/Game.java +++ b/src/net/socialgamer/cah/data/Game.java @@ -346,6 +346,8 @@ public class Game { } synchronized (players) { if (players.size() >= 3) { + // Pick a random start judge, though the "next" judge will actually go first. + judgeIndex = (int) (Math.random() * players.size()); blackDeck = new BlackDeck(); whiteDeck = new WhiteDeck(); startNextRound();