コード例 #1
0
ファイル: GameWindow.cs プロジェクト: SimeonKaishev/HangManV3
 public GameWindow(string difficulty)
 {
     InitializeComponent();
     // chosenWord = WordChooser.ChooseWord(difficulty);
     gamePlayBusiness   = new GamePlayBusiness(WordChooser.ChooseWord(difficulty));
     lblHiddenWord.Text = gamePlayBusiness.HiddenWord;
     playedChars        = new List <char>();
 }
コード例 #2
0
 public RankedGameWindow(string difficulty)
 {
     InitializeComponent();
     this.difficulty    = difficulty;
     gamePlayBusiness   = new GamePlayBusiness(WordChooser.ChooseWord(difficulty));
     lblHiddenWord.Text = gamePlayBusiness.HiddenWord;
     points             = 0;
     timer = new TimerForPoints();
 }