im trying to code a simple text based dungeon crawl i am just testing so far and its not working this is what ive got
#include<iostream>
#include<vector>
#include<algorithm>
#include <cstdlib>
#include <time.h>
using namespace std;
void instructions()
{
cout << "Dungeon crawl:" << endl;
cout <<"Use W A S D to move" << endl;
cout << "The objective is to get to the treasure(X)" << endl;
cout <<"While avoiding all traps (T)" << endl;
cout << "Good luck" << endl;
}
/*0 = black
1 = blue
2 = green
3 = aqua
4 = red
5 = purple
6 = yellow
7 = white
8 = grey
9 = light blue
a = light green
b = aqua
c = red
d = purple
e = yellow
f = white*/
void color()
{
cout << "Enter the first letter of the color you want" << endl;
char ch;
cin >> ch;
switch (ch)
{
case 'y':
system("color 6F");
break;
case 'b':
system("color 1F");
break;