Skip to content

Commit

Permalink
karel initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Dec 17, 2024
1 parent 4dd60a2 commit 89f5628
Show file tree
Hide file tree
Showing 17 changed files with 947 additions and 0 deletions.
38 changes: 38 additions & 0 deletions CircuitPython_Karel_The_Robot/chapters/karel_ch01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"input": {
"karel": {
"x": 0,
"y": 0,
"direction": "east"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 7, 7, 7, 7, 7, 7, 7],
[6, 6, 5, 7, 7, 7, 7, 7, 7, 7],
[5, 4, 5, 7, 7, 7, 7, 7, 7, 7]
]},
"goal": {
"karel": {
"x": 0,
"y": 2,
"direction": "west"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[4, 5, 5, 7, 7, 7, 7, 7, 7, 7],
[6, 6, 5, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 7, 7, 7, 7, 7, 7, 7]
]}
}
38 changes: 38 additions & 0 deletions CircuitPython_Karel_The_Robot/chapters/karel_ch02.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"input": {
"karel": {
"x": 0,
"y": 0,
"direction": "east"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 7, 7, 7, 7],
[5, 4, 5, 6, 6, 6, 7, 7, 7, 7]
]},
"goal": {
"karel": {
"x": 5,
"y": 1,
"direction": "east"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 7, 7, 7, 7],
[5, 5, 5, 5, 4, 5, 7, 7, 7, 7],
[5, 5, 5, 6, 6, 6, 7, 7, 7, 7]
]}
}
38 changes: 38 additions & 0 deletions CircuitPython_Karel_The_Robot/chapters/karel_ch03a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"input": {
"karel": {
"x": 0,
"y": 0,
"direction": "east"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 7, 7, 7, 7],
[5, 4, 5, 6, 6, 6, 7, 7, 7, 7]
]},
"goal": {
"karel": {
"x": 5,
"y": 1,
"direction": "east"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 7, 7, 7, 7],
[5, 5, 5, 5, 4, 5, 7, 7, 7, 7],
[5, 5, 5, 6, 6, 6, 7, 7, 7, 7]
]}
}
38 changes: 38 additions & 0 deletions CircuitPython_Karel_The_Robot/chapters/karel_ch03b.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"input": {
"karel": {
"x": 0,
"y": 9,
"direction": "east"
},
"world": [
[5, 5, 5, 5, 6, 6, 5, 5, 5, 5],
[5, 5, 5, 5, 6, 6, 5, 5, 4, 5],
[5, 5, 5, 5, 6, 6, 5, 5, 5, 5],
[5, 5, 5, 5, 6, 6, 5, 5, 5, 5],
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5],
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5],
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5],
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5],
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5],
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5]
]},
"goal": {
"karel": {
"x": 1,
"y": 1,
"direction": "west"
},
"world": [
[5, 5, 5, 5, 6, 6, 5, 5, 5, 5],
[5, 5, 5, 5, 6, 6, 5, 5, 5, 5],
[5, 5, 5, 5, 6, 6, 5, 5, 5, 5],
[5, 5, 5, 5, 6, 6, 5, 5, 5, 5],
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5],
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5],
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5],
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5],
[5, 4, 5, 5, 5, 5, 5, 5, 5, 5],
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5]
]}
}
38 changes: 38 additions & 0 deletions CircuitPython_Karel_The_Robot/chapters/karel_ch04.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"input": {
"karel": {
"x": 0,
"y": 1,
"direction": "east"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 7, 7, 7, 7, 7],
[6, 5, 6, 6, 6, 7, 7, 7, 7, 7]
]},
"goal": {
"karel": {
"x": 2,
"y": 1,
"direction": "east"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 7, 7, 7, 7, 7],
[6, 4, 6, 6, 6, 7, 7, 7, 7, 7]
]}
}
41 changes: 41 additions & 0 deletions CircuitPython_Karel_The_Robot/chapters/karel_ch05a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"input": {
"karel": {
"x": 0,
"y": 0,
"direction": "east"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7]
]},
"goal": {
"karel": {
"x": 2,
"y": 0,
"direction": "east"
},
"beeper_counts": {
"1, 0": 42
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 4, 5, 5, 7, 7, 7, 7, 7, 7]
]}
}
39 changes: 39 additions & 0 deletions CircuitPython_Karel_The_Robot/chapters/karel_ch05b.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"input": {
"karel": {
"x": 0,
"y": 0,
"direction": "east"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7]
]},
"goal": {
"karel": {
"x": 0,
"y": 0,
"direction": "east"
},

"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[4, 5, 5, 4, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[4, 5, 5, 4, 7, 7, 7, 7, 7, 7]
]}
}
44 changes: 44 additions & 0 deletions CircuitPython_Karel_The_Robot/chapters/karel_ch05c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"input": {
"karel": {
"x": 0,
"y": 0,
"direction": "east"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7]
]},
"goal": {
"karel": {
"x": 0,
"y": 0,
"direction": "east"
},
"beeper_counts": {
"0, 0": 5,
"3, 0": 5,
"0, 3": 5,
"3, 3": 5
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[4, 5, 5, 4, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 7, 7, 7, 7, 7, 7],
[4, 5, 5, 4, 7, 7, 7, 7, 7, 7]
]}
}
38 changes: 38 additions & 0 deletions CircuitPython_Karel_The_Robot/chapters/karel_ch06a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"input": {
"karel": {
"x": 0,
"y": 0,
"direction": "east"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7]
]},
"goal": {
"karel": {
"x": 6,
"y": 0,
"direction": "east"
},
"world": [
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7],
[5, 5, 5, 5, 5, 5, 5, 7, 7, 7]
]}
}
Loading

0 comments on commit 89f5628

Please sign in to comment.