Repository navigation
Implement universal energy recovery for all units - #44
Merged
Merged
Conversation
Every unit on the board recovers 2 energy at the end of every turn, whatever it did, within the energy its type was designed with; the three conditions on resting go. The sleep requirement follows the rest rule. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HCQiS5yWPsmeVnxUAkYg1R
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HCQiS5yWPsmeVnxUAkYg1R
The rest-for-everyone change, applied: REST_GAIN is 2 and the rest step walks every unit standing on the board rather than the ones that paid for nothing, so a unit that moved, struck, thought, was charged by its meter or slept recovers like one that stood still. The `resting` bookkeeping that told the two apart is gone. A unit still never recovers past the energy its type was designed with, a Wall and a destroyed unit recover nothing, and the turn's account says a unit rested only where its energy rose. GAME_RULES R3.9 is restated and every rule that cited it brought to the new rule, with the R9 rows and its commentary on pace; MODULE_DESCRIPTION and SPEC_COVERAGE follow, and both programmed series carry a notice that they were played under the old rule. The fixtures that counted on a unit not resting, or on resting one point, assert the new arithmetic: the movement fixtures design each type two above the unit's starting energy so the fare can still be read back, and a Heavy now lands its second blow on a wall the turn after its first. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HCQiS5yWPsmeVnxUAkYg1R
The Energy Regeneration and Sleep Is How A Unit Rests requirements in the main specs now carry the rule as applied: every unit standing on the board recovers 2 energy at the end of every turn, whatever it did, never past the energy its type was designed with, reported only where its energy rose. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HCQiS5yWPsmeVnxUAkYg1R
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.
Changed energy recovery to 2 per turn