-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGAME.cpp
More file actions
35 lines (27 loc) · 675 Bytes
/
GAME.cpp
File metadata and controls
35 lines (27 loc) · 675 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
34
// Created BY Mohammed hijazi & Mohammed Alnahwi
#include <set>
#include "Controler.h"
using namespace std;
ostream& operator<<(ostream& os, const Point& p) {
os << "[" << p.x << ", " << p.y << "]";
return os;
}
void interface(){
string choice;
cout << "🌟 Welcome to the Sokoban Game! 🌟\n\n";
cout << "Please choose a mode:\n";
cout << "1. 👤 Player Mode\n";
cout << "2. 🤖 Computer Mode\n";
cout << "\nEnter your choice (1 or 2): ";
do
cin >> choice;
while (choice != "1" && choice != "2");
if (choice == "1")
player_mode();
else
computer_mode();
}
int main(){
interface();
return 0;
}