public static void PrintBats() { if (newMap[PlayerCurrentCol, PlayerCurrentRow].VisitedHint != true) { VisitedPointOfInterest.Add($"[{newMap[PlayerCurrentCol, PlayerCurrentRow].Column},{newMap[PlayerCurrentCol, PlayerCurrentRow].Row}]: Bats"); } Console.WriteLine("You walked in to a group of bats"); }
public static void PrintDraft() { if (newMap[PlayerCurrentCol, PlayerCurrentRow].VisitedHint != true) { VisitedPointOfInterest.Add($"[{newMap[PlayerCurrentCol, PlayerCurrentRow].Column},{newMap[PlayerCurrentCol, PlayerCurrentRow].Row}]: Draft"); } Console.WriteLine("You detected draft in this cavern"); }
//Below three Print methods print the hint to alert player the current cavern they're in contain hints of thier surrounding caverns. public static void PrintBlood() { if (newMap[PlayerCurrentCol, PlayerCurrentRow].VisitedHint != true) { VisitedPointOfInterest.Add($"[{newMap[PlayerCurrentCol, PlayerCurrentRow].Column},{newMap[PlayerCurrentCol, PlayerCurrentRow].Row}]: Blood"); } Console.WriteLine("You see blood in this cavern"); }
public static int FallInToPit() { Console.Clear(); Console.WriteLine("============================================"); Console.WriteLine("You fall into a buttomless pit..."); Console.WriteLine("============================================"); PrintEndINFO(); Console.WriteLine("--------\nGameOver\n--------"); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); Console.Clear(); VisitedPointOfInterest.Clear(); VisitedTrace.Clear(); EndMapInfo.Clear(); MapInfo.Clear(); return(99); }
public static int WumpusEatsYou() { if (newMap[PlayerCurrentCol, PlayerCurrentRow].Wumpus == true) { Console.Clear(); Console.WriteLine("=========================="); Console.WriteLine("You got eaten by Wumpus!"); Console.WriteLine("=========================="); PrintEndINFO(); Console.WriteLine("--------\nGameOver\n--------"); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); Console.Clear(); VisitedPointOfInterest.Clear(); VisitedTrace.Clear(); EndMapInfo.Clear(); MapInfo.Clear(); return(99); } else { Console.Clear(); Console.WriteLine("=========================="); Console.WriteLine("You missed Wumpus..."); Console.WriteLine("You got eaten by Wumpus!"); Console.WriteLine("=========================="); PrintEndINFO(); Console.WriteLine("--------\nGameOver\n--------"); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); Console.Clear(); VisitedPointOfInterest.Clear(); VisitedTrace.Clear(); EndMapInfo.Clear(); MapInfo.Clear(); return(99); } }
public static int CheckIfWumpusDead(int updateCol, int updatedRow) { if (newMap[updateCol, updatedRow].Wumpus == true) { Console.WriteLine("============================================="); Console.WriteLine("You shot Wumpus dead in the head, you win!!"); Console.WriteLine("============================================="); PrintEndINFO(); Console.WriteLine("--------\nGameOver\n--------"); Console.ReadKey(); Console.Clear(); VisitedPointOfInterest.Clear(); VisitedTrace.Clear(); EndMapInfo.Clear(); MapInfo.Clear(); return(100); } else { return(WumpusEatsYou()); } }