forked from cfrantzidis/DungeonExplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
39 lines (33 loc) · 1.19 KB
/
Copy pathProgram.cs
File metadata and controls
39 lines (33 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DungeonExplorer
{
internal class Program
{
static void Main(string[] args)
{
// Welcome message and player name input
Console.WriteLine("Welcome to Dungeon Explorer!");
Console.Write("Please enter your name: ");
string playerName = Console.ReadLine();
// Initialize the player with 100 health
Player player = new Player(playerName, 100);
// Initialize the starting room
Room startingRoom = new Room(
"You are in a dimly lit room. The walls are covered in moss, and there's a faint smell of dampness in the air.",
"Rusty Key"
);
// Initialize the game with the player and starting room
Game game = new Game(player, startingRoom);
// Start the game
game.Start();
// End of program
Console.WriteLine("Thank you for playing Dungeon Explorer!");
Console.WriteLine("Press any key to exit...");
Console.ReadKey();
}
}
}