\r
for (int player = 0; player < 4; player++)\r
{\r
- if (isGameOver[player])\r
- continue;\r
+ //if (isGameOver[player])\r
+ // continue;\r
\r
if (inputs.mousePressedChanged[player])\r
mouseButton[player] = inputs.mousePressed[player];\r
\r
public void ResetGame(Object[] playerIdentifiers, Object thisPlayer)\r
{\r
- if (playerIdentifiers.Length != 4)\r
- throw new Exception("This game requires four players.");\r
+ //if (playerIdentifiers.Length != 4)\r
+ // throw new Exception("This game requires four players.");\r
\r
// Copy the player identifiers - do not rely on the array parameter not changing.\r
\r
- for (int i = 0; i < 4; i++)\r
+ // Now the test harness will at least run with less than 4 players...\r
+ int numPlayers = playerIdentifiers.Count();\r
+ for (int i = 0; i < numPlayers; i++)\r
this.playerIdentifiers[i] = playerIdentifiers[i];\r
\r
// Create new game state and inputs objects.\r