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);
  }