Repository navigation
refactor(m5h): games routines split by what they do - #1591
Merged
Merged
Conversation
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.
M-5h: the games lane of the complexity and nesting pass. All 46 functions that failed a shape measure in trek, brasa's game builtins, menu's games and argus's trek bridge now pass all three (cognitive ≤ 15, cyclomatic ≤ 15, depth ≤ 3), and so does every helper split from them.
sprintf,snova,attack,abandon,nova,phaser,eventsand the rest are split by what each part does.arg_takestays lazy and in order. trek has no shape findings left.magic_deriveis an ordered signature table;qr_encode,functions_draw,hangman_runand the others are split into named steps.question_controlis a data map;event_play,lrs_drawandreadout_buildare split.constructorand__proto__fall to the default.--moved-fromflag from M-5.0 is removed.Behaviour pinned first on unsplit code, recorded on an archive of main and unchanged after:
The 18 C fixture transcripts are byte-identical. Shape ceilings lowered for trek, menu, brasa and argus.