コード例 #1
0
ファイル: Game.java プロジェクト: tuxanek/School-projects
  /** 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);
  }