using System.Collections.Generic;
static string[,] board1 ={
{"🟩", "🟩", "🟩", "🟩", "🟩"},
{"🟩", "🌴", "🟩", "🟩", "🟩"},
{"🟩", "🟩", "🟩", "🟩", "🟩"},
{"🟩", "🟩", "🟩", "🍌", "🟩"},
{"🟩", "🟩", "🌴", "🟩", "⬇️"}
static string[,] board2 ={
{"🟨", "🟨", "🌴", "🟨", "🟨"},
{"🟨", "🟨", "🌴", "🟨", "➡️"},
{"🌴", "🟨", "🌴", "🦀", "🌴"},
{"🟨", "🟨", "🟨", "🟨", "🟨"},
{"🟦", "🟦", "🟦", "🟦", "🟦"}
static string[,] fightboard1 ={
{"⬜", "⬜", "⬜", "⬜", "⬜"},
{"⬜", "🐵", "⬜", "⬜", "⬜"},
{"⬜", "⬜", "⬜", "⬜", "⬜"},
{"🟩", "🟩", "🟩", "🟩", "🟩"}
public static void checkinventory(List<string> inventory)
Console.WriteLine("Your Inventory consists of:");
foreach (string item in inventory)
public static void checkcommands()
Console.WriteLine("Press W, A, S or D to move around the maze.");
Console.WriteLine("Press E to check inventory");
Console.WriteLine("Press ? to check commands");
public static void startscreen()
Console.WriteLine("oooh Banana");
Console.WriteLine(" .-. ");
Console.WriteLine(" / | ");
Console.WriteLine(" | / ");
Console.WriteLine(@" .'\|.-; _ ");
Console.WriteLine(@" /.-.;\ |\|");
Console.WriteLine(@" ' |'._/ `");
Console.WriteLine(@" | \ ");
Console.WriteLine(@" \ | ");
Console.WriteLine(" '-' ");
Console.WriteLine("Get Bananas");
public static void entername()
Console.WriteLine("Please enter your name: ");
playername = Console.ReadLine();
Console.WriteLine("That name is blank and cannot be accepted");
else if (playername.Length >= 15)
Console.WriteLine("That name is too long and cannot be accepted");
string playernameshort = playername.Substring(0,1);
playername = playernameshort + playername.Substring(playername.Length -2);
playername = playername.ToUpper();
Console.WriteLine("Welcome to the Jungle Maze {0}!",playername);
public static void Fight(int enemyfight)
Console.WriteLine("Monkey Kong is attacked by {0}!", enemyname);
fightboard1[1, 3] = enemylook;
while (enemyalive == true)
Console.WriteLine("Press 1 to attack, Press 2 to open inventory");
string fightchoice = Console.ReadLine();
enemyhealth = enemyhealth - 1;
Console.WriteLine("Monkey Kong punches {0}!", enemyname);
Console.WriteLine("{0} has {1} health left!", enemyname, enemyhealth);
Console.WriteLine("You've defeated {0}!", enemyname);
fightboard1[3, monkeyhealth - 1] = "⬜";
monkeyhealth = monkeyhealth - 1;
Console.WriteLine("{0} attacked Monkey Kong!", enemyname);
Console.WriteLine("Monkey Kong has {0} health left!", monkeyhealth);
public static void DisplayBoard1()
for (int i = 0; i < 5; i++)
Console.WriteLine(board1[i,0] + " " + board1[i,1] + " " + board1[i,2] + " " + board1[i,3] + " " + board1[i,4]);
public static void DisplayBoard2()
for (int i = 0; i < 5; i++)
Console.WriteLine(board2[i,0] + " " + board2[i,1] + " " + board2[i,2] + " " + board2[i,3] + " " + board2[i,4]);
public static void DisplayFightBoard()
for (int i = 0; i < 4; i++)
Console.WriteLine(fightboard1[i,0] + " " + fightboard1[i,1] + " " + fightboard1[i,2] + " " + fightboard1[i,3] + " " + fightboard1[i,4]);
public static void Main()
List<string> inventory = new List<String> {};
else if (currentboard == 2)
Console.WriteLine("Do you want to move, check inevntory or check contorls?");
pmove = Console.ReadLine();
if (currentboard == 1 && board1[playerrow - 1, playercol] == "🌴")
Console.WriteLine("There's a tree in the way!");
if (currentboard == 2 && board2[playerrow - 1, playercol] == "🌴")
Console.WriteLine("There's a tree in the way!");
if (currentboard == 2 && board2[playerrow - 1, playercol] == "🦀")
Console.WriteLine("Fight Time!");
else if (currentboard == 1)
board1[playerrow, playercol] = "🟩";
playerrow = playerrow - 1;
else if (currentboard == 2)
board2[playerrow, playercol] = "🟨";
playerrow = playerrow - 1;
if (currentboard == 1 && board1[playerrow + 1, playercol] == "🌴")
Console.WriteLine("There's a tree in the way!");
if (currentboard == 2 && board2[playerrow + 1, playercol] == "🟦")
Console.WriteLine("Monkey Kong can't swim!");
if (currentboard == 2 && board2[playerrow + 1, playercol] == "🌴")
Console.WriteLine("There's a tree in the way!");
else if (currentboard == 1)
board1[playerrow, playercol] = "🟩";
playerrow = playerrow + 1;
else if (currentboard == 2)
board2[playerrow, playercol] = "🟨";
playerrow = playerrow + 1;
if (currentboard == 1 && board1[playerrow, playercol - 1] == "🌴")
Console.WriteLine("There's a tree in the way!");
if (currentboard == 2 && board2[playerrow, playercol - 1] == "🌴")
Console.WriteLine("There's a tree in the way!");
else if (currentboard == 1)
board1[playerrow, playercol] = "🟩";
playercol = playercol - 1;
else if (currentboard == 2)
board2[playerrow, playercol] = "🟨";
playercol = playercol - 1;
if (currentboard == 1 && board1[playerrow, playercol + 1] == "🌴")
Console.WriteLine("There's a tree in the way!");
if (currentboard == 2 && board2[playerrow, playercol + 1] == "🌴")
Console.WriteLine("There's a tree in the way!");
else if (currentboard == 1)
board1[playerrow, playercol] = "🟩";
playercol = playercol + 1;
else if (currentboard == 2)
board2[playerrow, playercol] = "🟨";
playercol = playercol + 1;
checkinventory(inventory);
board1[playerrow, playercol] = "🐵";
board2[playerrow, playercol] = "🐵";
if (board1 [4, 4] == "🐵")
Console.WriteLine("Monkey Kong moves to Simian Shore!");
if (board2 [1, 4] == "🐵")
Console.WriteLine("Monkey Kong Found a big Banana!!!");
Console.WriteLine(" .-. ");
Console.WriteLine(" / | ");
Console.WriteLine(" | / ");
Console.WriteLine(@" .'\|.-; _ ");
Console.WriteLine(@" /.-.;\ |\|");
Console.WriteLine(@" ' |'._/ `");
Console.WriteLine(@" | \ ");
Console.WriteLine(@" \ | ");
Console.WriteLine("🐵 '-' ");
Console.WriteLine("END");
if (board1 [3, 3] == "🐵" && bananacheck == 0)
Console.WriteLine(" You picked up a banana! 🍌");
inventory.Add("🍌 Banana");