-
Notifications
You must be signed in to change notification settings - Fork 0
/
Context.h
59 lines (55 loc) ยท 2.63 KB
/
Context.h
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include <string>
#include <vector>
#include <map>
#include "Point.h"
using namespace std;
static string PLAYER = "๐";
static vector<string> WALL = {"โบ","๐ชต","๐ฟ","๐ช"};
static vector<string> BOX = {"๐งบ","๐ซ","๐"};
static vector<string> POINT = {"๐","๐","๐ฅฉ"};
static vector<string> moon = {"๐","๐","๐","๐","๐","๐","๐","๐"};
static string BONE = "๐ฆด";
static int m = 0;
static int lvl = 0;
static string moves[4] = {"up","down","right","left"};
static map<string, Point> Actions =
{
{"up",{-1,0}},
{"down",{1,0}},
{"right",{0,1}},
{"left",{0,-1}},
};
static vector<vector<vector<string>>> levels = {
{
{"๐ชต","๐ชต","๐ชต","๐ชต","๐ชต","๐ชต"},
{"๐ชต"," "," "," "," ","๐ชต"},
{"๐ชต"," "," "," "," ","๐ชต"},
{"๐ชต"," "," "," ","๐งบ","๐ชต"},
{"๐ชต","๐ชต","๐ชต","๐ชต"," ","๐ชต"},
{"๐ชต","๐"," "," "," ","๐ชต"},
{"๐ชต","๐งบ"," "," "," ","๐ชต"},
{"๐ชต"," "," "," ","๐","๐ชต"},
{"๐ชต","๐ชต","๐ชต","๐ชต","๐ชต","๐ชต"},
},
{
{"โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ"},
{"โบ"," "," "," "," "," "," ","๐ช"," "," "," ","๐ช"," "," ","โบ"},
{"โบ"," "," "," "," ","๐ซ"," "," "," ","๐"," ","๐ช"," "," ","โบ"},
{"โบ"," ","๐ซ","๐ช"," "," "," ","๐ช"," "," "," ","๐ช"," "," ","โบ"},
{"โบ"," ","๐","๐ช"," "," "," ","๐ช"," "," "," "," "," "," ","โบ"},
{"โบ"," "," ","๐ช"," "," "," "," "," "," "," ","๐ซ"," ", " ","โบ"},
{"โบ"," "," ","๐ช"," "," "," ","๐ช"," "," "," ","๐ช"," ","๐","โบ"},
{"โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ","โบ"},
},
{
{" "," "," "," "," "," "," "," "," ","๐ฟ","๐ฟ","๐ฟ"," "," "," "," "},
{"๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ"," "," ","๐ฟ","๐ฟ"," ","๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ"},
{"๐ฟ"," "," "," "," ","๐ฟ","๐ฟ","๐ฟ","๐ฟ"," "," "," "," "," ","๐ฅฉ","๐ฟ"},
{"๐ฟ"," "," ","๐"," ","๐ฅฉ"," "," "," "," "," ","๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ"},
{"๐ฟ"," ","๐ฟ"," "," ","๐ฟ","๐ฟ","๐ฟ"," "," ","๐","๐ฟ"," "," "," "," "},
{"๐ฟ"," ","๐ฟ","๐ฟ"," ","๐ฟ"," ","๐ฟ"," "," "," ","๐ฟ"," "," "," "," "},
{"๐ฟ","๐"," "," "," ","๐ฟ","๐ฟ","๐ฟ"," "," "," ","๐ฟ","๐ฟ","๐ฟ"," "," "},
{"๐ฟ","๐ฅฉ"," "," "," "," "," ","๐"," "," "," "," ","๐ฅฉ","๐ฟ"," "," "},
{"๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ","๐ฟ"," "," "},
},
};