10#include <Wt/WComboBox.h>
11#include <Wt/WPushButton.h>
24 const int MaxGuesses = 9;
32 setContentAlignment(AlignmentFlag::Center);
34 title_ = addWidget(std::make_unique<WText>(tr(
"hangman.readyToPlay")));
36 word_ = addWidget(std::make_unique<WordWidget>());
38 images_ = addWidget(std::make_unique<ImagesWidget>(MaxGuesses));
40 letters_ = addWidget(std::make_unique<LettersWidget>());
43 language_ = addWidget(std::make_unique<WComboBox>());
44 language_->addItem(tr(
"hangman.englishWords").arg(18957));
45 language_->addItem(tr(
"hangman.dutchWords").arg(1688));
47 addWidget(std::make_unique<WBreak>());
49 newGameButton_ = addWidget(std::make_unique<WPushButton>(tr(
"hangman.newGame")));
57 WString title(tr(
"hangman.guessTheWord"));
86 WString status = tr(
"hangman.youHang");
std::wstring RandomWord(Dictionary dictionary)