private void Lose() { if (game.HP == 2) { pictureBox3.Visible = false; } else if (game.HP == 1) { pictureBox2.Visible = false; } else if (game.HP == 0) { pictureBox1.Visible = false; } if (game.HP == 0) { string ans; if ((ans = game.PotentialAnswer()) != "No Answer") { this.rtbWord.Text = ans; this.pnNotification.Dock = DockStyle.Fill; this.lbMessage.Text = "Thua rồi nha con, Đáp án nè"; this.rtbDecrip.Text = LoadDecrip(ans); this.pnNotification.Visible = true; } else { MessageBox.Show("Tôi cũng không tìm thấy đáp án", "Solution"); } GameOver(); return; } this.lbScore.Text = "Score: " + game.score; tbPlayer.Text = ""; string res; if ((res = game.PotentialAnswer()) != "No Answer") { this.rtbWord.Text = res; this.pnNotification.Dock = DockStyle.Fill; this.lbMessage.Text = "Bạn thua rồi, đáp án là: "; this.rtbDecrip.Text = LoadDecrip(res); this.pnNotification.Visible = true; } else { MessageBox.Show("Tôi cũng không tìm thấy đáp án", "Solution"); } this.rtbNPC1.Text = game.NewGame(); this.rtbDecription.Text = game.Decription(this.rtbNPC1.Text); pbWord.Image = null; this.pbWord.LoadAsync(game.getLinkPic(this.rtbNPC1.Text)); this.lbSeq.Text = this.rtbNPC1.Text.Substring(this.rtbNPC1.Text.Length - 2); richTextBox1.Text = ""; }