-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlevels.js
125 lines (124 loc) · 3.12 KB
/
levels.js
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
var levels = {
currentLevel: 0,
levels: [{
code: "",
name: "Morning Newspaper",
worlds: [
{
walls: "0,0,0,0,0,0,0\n" +
"0,0,9,8,12,0,0\n" +
"0,0,1,0,0,0,0\n" +
"0,0,3,2,6,0,0\n" +
"0,0,0,0,0,0,0",
beepers: [{ x: 5, y: 2, count: 1 }],
solution: [{ x : 2, y: 1, count: 1 }],
karel: { x: 2, y: 1, direction: 0, isSuper: false, beeperCount: 0 }
},
],
},
{
code: "",
name: "Checkerboard",
worlds: [
{
walls: "0,0,0,0,0\n" +
"0,0,0,0,0\n" +
"0,0,0,0,0",
beepers: [],
solution: [
{ x: 1, y: 0, count: 1 },
{ x: 3, y: 0, count: 1 },
{ x: 0, y: 1, count: 1 },
{ x: 2, y: 1, count: 1 },
{ x: 4, y: 1, count: 1 },
{ x: 1, y: 2, count: 1 },
{ x: 3, y: 2, count: 1 },
],
karel: { x: 0, y: 0, direction: 0, isSuper: false }
}],
},
{
code: "",
name: "Pot Holes",
worlds: [
{
walls: "0,0,0,0,0,0,0\n" +
"8,12,0,9,12,0,9",
beepers: [],
solution: [{ x: 2, y: 1, count: 1 }, { x: 5, y: 1, count: 1 }],
karel: { x: 0, y: 0, direction: 0, isSuper: true }
},
{
walls: "0,0,0,0,0,0,0\n" +
"12,0,13,0,13,0,9",
beepers: [],
solution: [{ x : 1, y: 1, count: 1 }, { x: 3, y: 1, count: 1 }, { x: 5, y: 1, count: 1 }],
karel: { x: 0, y: 0, direction: 0, isSuper: true }
},
],
},
{
code: "",
name: "Double the Beepers",
worlds: [
{
walls: "0,0,0,0,0,0,0",
beepers: [{ x: 3, y: 0, count: 3 }],
solution: [{ x: 3, y: 0, count: 6 }],
karel: { x: 0, y: 0, direction: 0, isSuper: true }
},
{
walls: "0,0,0,0,0,0,0",
beepers: [{ x: 3, y: 0, count: 4 }],
solution: [{ x : 3, y: 0, count: 8 }],
karel: { x: 0, y: 0, direction: 0, isSuper: true }
},
],
},
{
code: "",
name: "Midpoint",
worlds: [
{
walls: "0,0,0,0,0,0,0",
beepers: [],
solution: [{ x: 3, y: 0, count: 1 }],
karel: { x: 0, y: 0, direction: 0, isSuper: true }
},
{
walls: "0,0,0,0,0",
beepers: [],
solution: [{ x : 2, y: 0, count: 1 }],
karel: { x: 0, y: 0, direction: 0, isSuper: true }
},
],
},
{
code: "",
name: "Maze",
worlds: [
{
walls: "2,0,2,0,6,0\n" +
"0,6,0,0,1,2\n" +
"4,0,6,6,4,0\n" +
"4,2,2,4,2,0\n" +
"0,6,0,2,4,0\n" +
"4,0,0,4,0,0",
beepers: [{ x: 5, y: 0, count: 1 }],
solution: [],
karel: { x: 0, y: 5, direction: 0, isSuper: true }
},
{
walls: "2,0,2,0,6,0\n" +
"0,6,0,0,1,2\n" +
"4,0,6,6,4,0\n" +
"4,2,2,4,2,0\n" +
"0,6,0,2,4,0\n" +
"4,0,0,4,0,0",
beepers: [{ x: 0, y: 5, count: 1 }],
solution: [],
karel: { x: 5, y: 0, direction: 0, isSuper: true }
},
],
}]
};