Compare commits
No commits in common. "2e5125cefda0c7c448e3d7f3b22a9d763fbf8d02" and "c59f7d7e3933c13131efcac4aeb0e8ee87f5c6df" have entirely different histories.
2e5125cefd
...
c59f7d7e39
|
@ -13,7 +13,7 @@
|
|||
],
|
||||
"start position": [ 1, 1],
|
||||
"start heading": "south",
|
||||
"text": "[Level 8]\n\nLet's combine our previous knowledge about loops with this new while loop...",
|
||||
"text": "Let's do the same thing but more complex...",
|
||||
"allowed commands": [
|
||||
"step",
|
||||
"left",
|
||||
|
|
|
@ -1,27 +1,35 @@
|
|||
{
|
||||
"field": [
|
||||
" _________________ ",
|
||||
"| ######## |",
|
||||
"| # # |",
|
||||
"| # # |",
|
||||
"| #$ # |",
|
||||
"| # ## |",
|
||||
"| # |",
|
||||
"| #########|",
|
||||
"| |",
|
||||
"| |",
|
||||
"| |",
|
||||
"| |",
|
||||
"| |",
|
||||
"| |",
|
||||
"| |",
|
||||
"| |",
|
||||
" ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ "
|
||||
],
|
||||
"start position": [17, 1],
|
||||
"start heading": "south",
|
||||
"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.",
|
||||
"start position": [ 1, 1],
|
||||
"start heading": "east",
|
||||
"text": "TODO: Tell the player that loops will only check their condition at the start of the loop",
|
||||
"allowed commands": [
|
||||
"step",
|
||||
"left",
|
||||
"right",
|
||||
"while"
|
||||
"take",
|
||||
"repeat",
|
||||
"while",
|
||||
"if"
|
||||
],
|
||||
"allowed conditions": [
|
||||
"facing north",
|
||||
"facing south",
|
||||
"facing east",
|
||||
"facing west",
|
||||
"in front of wall",
|
||||
"goal reached"
|
||||
"goal reached",
|
||||
"on apple"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue