Added random set assignment for the computer in constructed New Game.

This commit is contained in:
jendave
2011-08-06 12:04:42 +00:00
parent fc0b14248f
commit 8af7bfce00

View File

@@ -2404,6 +2404,8 @@ public class GameAction {
card.setRandomPicture(generator.nextInt(n)); card.setRandomPicture(generator.nextInt(n));
//System.out.println("computer random number:" + card.getRandomPicture()); //System.out.println("computer random number:" + card.getRandomPicture());
//} //}
if (card.getSets().size() > 0)
card.setRandomSetCode();
AllZone.Computer_Library.add(card); AllZone.Computer_Library.add(card);