Пример #1
0
 public static void gamesConsumer(GameFactory factory) {
   game = factory.getGame();
   while (game.move()) ;
 }
Пример #2
0
 public static void playGame(GameFactory factory) {
   Game s = factory.getGame();
   while (s.move()) ;
 }