-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlevel.py
More file actions
109 lines (96 loc) · 5.35 KB
/
Copy pathlevel.py
File metadata and controls
109 lines (96 loc) · 5.35 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import discord
import numpy as np
"""
Pac-Man level array
w: 27(original is 28) l:31
0 = move/edible, 1 = border, 2 = fruit,
3 = ghoststart, 4 = teleport, 5 = move/nothing/eaten,
6 = ghost gate, 7 = powerup, 8 = pacstart, 9 = nothing,
picks random row and picks random 5 to inject fruits(2) once in a while
alt for light version:
blue square blank: "\U0001F7E6"
orange diamonds: "\U0001F538" OR blue square + asterisk: "\U0000002A"
blue sqaure 0: "\U00000030"
small white square: "\U000025AB"
red flag (gate): "\U0001F6A9"
"""
Emojis = ["\U000025AB", "\U0001F7E5", "\U00002B1B",
"\U00002B1B", "\U00002B1B", "\U00002B1B",
"\U0001F6A9", "\U000025FB", "\U00002B1B", "\U00002B1B"]
#smirking face, face screaming in fear, sunglasses face
#ghost, alien, invader, robot, poop
#cherries, orange, apple, melon, strawberry
#right, left, up, down
#eyes
Extra = ["\U0001F60F", "\U0001F631", "\U0001F60E",
"\U0001F47B", "\U0001F47D", "\U0001F47E", "\U0001F916", "\U0001F4A9",
"\U0001F352", "\U0001F34A", "\U0001F34E", "\U0001F348", "\U0001F353",
"\U000025B6", "\U000025C0", "\U0001F53C", "\U0001F53D",
"\U0001F440"]
Basic = np.array([
[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],
[1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0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