Repository navigation
Move the hand levels into files and add 5 levels - #20
Merged
Merged
Conversation
Each hand level is a file of levels/ that calls `level NAME BODY`. parseLevel of the core checks each part and gives the file and the line of a fault. Rooftops, The Canal, Market Square, Old Wall, and Lantern Hill are new, each with a route from tools/solve.tcl.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4. Based on #19.
Each hand level is a file of
levels/:level NAME BODY, where the body is a list ofstreet NAME {PART LIST ...}.levels/load.tclsources the core, then the files in a fixed order, andlevelpasses each body toparseLevelof the core.parseLevelreads the body as a list (no command in it runs), checks the parts, the count of numbers, the numbers, and the bounds, and gives an errorFILE:LINE: TEXTwith the line of the street. The web build reads app files only withsource, so the files are Tcl that calls one data command.The 5 levels of 0.1.0 moved with no change of data: their routes replay as before. The new levels are Rooftops, The Canal, Market Square, Old Wall, and Lantern Hill, with parts of the game only (blocks, ledges, lamps, springs, boats, boards, water).
tools/solve.tclfound a route for each, in 490 to 961 frames, andtests/levels.testreplays the 10 routes.The count of hand levels is
handCountin place of the number 5 in the picker, the progress, the street index of the stars, and the save.What ran here:
ztcl test(92 tests pass, 14 new: the 5 new routes, the level checks, and a test that a command in a level file does not run),tests/tk/smoke.tclandtests/tk/save.tclwith ztk 1.0.0-beta.8 headless, captures of the 15 new streets, the docs build, and the web build in headless Chromium. What did not run: a person who plays the new levels by hand, and a phone.