Compare commits

...

2 Commits

Author SHA1 Message Date
BodgeMaster 2e5125cefd Write level 9 2023-05-02 16:50:09 +02:00
BodgeMaster 9c087414f8 Improve text on level 8 2023-05-02 16:49:48 +02:00
2 changed files with 13 additions and 21 deletions

View File

@ -13,7 +13,7 @@
], ],
"start position": [ 1, 1], "start position": [ 1, 1],
"start heading": "south", "start heading": "south",
"text": "Let's do the same thing but more complex...", "text": "[Level 8]\n\nLet's combine our previous knowledge about loops with this new while loop...",
"allowed commands": [ "allowed commands": [
"step", "step",
"left", "left",

View File

@ -1,35 +1,27 @@
{ {
"field": [ "field": [
" _________________ ", " _________________ ",
"| |", "| ######## |",
"| |", "| # # |",
"| |", "| # # |",
"| |", "| #$ # |",
"| |", "| # ## |",
"| |", "| # |",
"| |", "| #########|",
"| |", "| |",
" ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ " " ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ "
], ],
"start position": [ 1, 1], "start position": [17, 1],
"start heading": "east", "start heading": "south",
"text": "TODO: Tell the player that loops will only check their condition at the start of the loop", "text": "[Level 9]\n\nOne thing to note is that the code inside a loop always finishes running before\nthe condition is checked again. The simplest solution to this level will run\npast the goal before returning to it as a result of this.",
"allowed commands": [ "allowed commands": [
"step", "step",
"left", "left",
"right", "right",
"take", "while"
"repeat",
"while",
"if"
], ],
"allowed conditions": [ "allowed conditions": [
"facing north",
"facing south",
"facing east",
"facing west",
"in front of wall", "in front of wall",
"goal reached", "goal reached"
"on apple"
] ]
} }