Fix comments
This commit is contained in:
parent
d0b9fa17fa
commit
7c02f21b75
|
@ -74,7 +74,7 @@ Game⇐{ # The Game function creates a game object
|
|||
# We (try to) push the tile in front of the player
|
||||
Step←{Push⌾((𝕨 Tiles ⊑player FindIdx ⊑¨𝕩)⊸⊑)𝕩} # 𝕨 S 𝕩 | 𝕨: direction | 𝕩:level | Step the game
|
||||
|
||||
# - The lasers shoot lasers that get intercepted by opaque objects and
|
||||
# - The lasers shoot lasers beams that get intercepted by opaque objects and
|
||||
# bounce on mirrors:
|
||||
|
||||
# w‿d Bounce x | x: map | w‿d: w: current position, d: direction of the laser
|
||||
|
@ -124,5 +124,5 @@ Game⇐{ # The Game function creates a game object
|
|||
WinLevel⇐{𝕊:Win(currentLevel⊑levels)Step´⌽moves}
|
||||
Reset⇐{𝕊:moves↩⟨0‿0⟩}
|
||||
NextLevel⇐{𝕊:currentLevel↩currentLevel+1⋄Reset @}
|
||||
Over⇐{𝕊:currentLevel<≠levels}
|
||||
Over⇐{𝕊:currentLevel<≠levels} # has the user beaten all of the levels?
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue