-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
34 lines (27 loc) · 827 Bytes
/
main.cpp
File metadata and controls
34 lines (27 loc) · 827 Bytes
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
/*
* Made by Calvin Fischer
*
*/
#include <iostream>
#include <string>
#include <functional>
#include "Room.h"
#include "Character.h"
using namespace std;
int main() {
cout << "*********************Welcome to BORK*********************" << endl;
cout << "A BYU simulation designed mostly to teach people" << endl;
cout << "cardinal directions (and also to have fun doing it)." << endl;
cout << "Only use capital letters for single letter directions." << endl;
cout << "There are lots of things to explore and do!" << "\n\n\n";
Character you;
string input = "";
cout << "You Awake" << endl;
cout << "You see a leaflet on the ground." << endl;
while (input != "quit") {
cout << "->";
getline(cin, input);
you.act(input);
}
return you.cleanUp();
}