Example #1
0
  /** Inicializace hry -- volba nahodneho slova */
  public void initializeGame() {
    List<String> words = app.getWords();
    int rnd = (new Random()).nextInt(words.size());
    secretWord = words.get(rnd);

    history.clear();
    app.setGameCount(app.getGameCount() + 1);
    app.setTurn(0);
  }
Example #2
0
 public void incTurn() {
   app.incTurn();
 }
Example #3
0
 public int getTurn() {
   return app.getTurn();
 }