public void xuat() { GIAOTHUC.textcolor(ConsoleColor.Red); Console.WriteLine("\n\t\t »»»»» CHE DO SURVIVOR «««««\n"); GIAOTHUC.colordefault(); for (int i = 0; i < ng.Length; i++) { Console.Write("\t\t\t {0}. ", i + 1); ng[i].xuat(); } }
protected void endgame(int x) { GIAOTHUC.gotoxy(m + 3, n / 2 + 10); //canh toa do xuat KQ if (x == 0) { GIAOTHUC.textcolor(ConsoleColor.Blue); GIAOTHUC.backgroundcolor(ConsoleColor.White); Console.WriteLine("RAT TIEC! TRO CHOI KET THUC T-T "); GIAOTHUC.colordefault(); Console.ReadKey(true); } if (x == 1) { GIAOTHUC.textcolor(ConsoleColor.Red); GIAOTHUC.backgroundcolor(ConsoleColor.Yellow); Console.Write("CHUC MUNG BAN DA DANH DAU DU SO KHO BAU"); GIAOTHUC.colordefault(); Console.ReadKey(true); } }
protected bool notemty() { if (s[x, y] != ' ') { GIAOTHUC.gotoxy(m + 2, n / 2 + 16); GIAOTHUC.textcolor(ConsoleColor.Red); Console.WriteLine("Vi tri nay da thao tac"); GIAOTHUC.colordefault(); GIAOTHUC.gotoxy(x, y + 16); return(true); } return(false); }