Compare commits

...

2 Commits

Author SHA1 Message Date
Rampoina 8abdfce09b Clear screen when changing level 2023-03-04 19:13:53 +01:00
Rampoina b5b64f70a1 Fix levels 2023-03-04 19:13:18 +01:00
2 changed files with 6 additions and 20 deletions

View File

@ -97,7 +97,12 @@ clear←""
{𝕤•Out "Invalid key: (hjkl or wasd) to move, u to undo, r to reset level"}(¬key"wasdhjkluqr")@
•Out¨ (currentLevellevels) Draw moves
•Out "Moves: "•Repr ¯1+moves
{𝕤•Out "Good job!, press any key to continue to the next level"•term.CharB @e"[H"currentLevelcurrentLevel+1moves00}(Win (currentLevellevels) Step´moves)@
{𝕤
•Out "Good job!, press any key to continue to the next level"
•term.CharB @
•Out e"[H"e"[0J"
currentLevelcurrentLevel+1moves00
}(Win (currentLevellevels) Step´moves)@
}•_While_{𝕤currentLevel<levels}@
•Out "Well played, you win!"
•Out e"[?12l"e"[?25h"

19
levels
View File

@ -7,25 +7,6 @@
# # λ #
##############
###############
# # ⊕ #
# v / #### #
# #/ # \ #
# # ## #
# #\ λ / #
# #### ## / #
# \ #
###############
##############
# #
# ⊕ #
# > λ #
# ⊕ #
# > / #
# #
##############
##############
# #
# > / #