Restructure into src/test package layout and improve UI with Claude Code changes - #2
Open
CanYouTeachMeHowToCode wants to merge 2 commits into
Open
Restructure into src/test package layout and improve UI with Claude Code changes#2CanYouTeachMeHowToCode wants to merge 2 commits into
CanYouTeachMeHowToCode wants to merge 2 commits into
Conversation
CanYouTeachMeHowToCode
commented
Jul 6, 2026
Owner
- Move board.py/AI.py/RL.py/UI.py into an installable src/game2048 package (pyproject.toml, setuptools src-layout, play2048 entry point); move tests into test/ with real pytest assertions (test_board.py, test_ai.py) replacing the old main print-based checks in board.py and the random game-simulation block in AI.py
- UI: reposition Score/Step/Time in the title bar and always show both Step and Time in both play modes; fix the AI-mode timer to track real elapsed time instead of counting AI move steps, with mm:ss.mmm precision
- UI: restyle the customize-size and level-selection pages to match the start page's theme (scaled fonts, consistent palette), sharing layout/font-scale helpers instead of duplicated magic numbers
- UI: add Esc to return to the home page from a paused or finished game
- Add README with install/run/test instructions
- Add .gitignore for pycache/egg-info build artifacts, drop stale tracked .pyc files
- Move board.py/AI.py/RL.py/UI.py into an installable src/game2048 package (pyproject.toml, setuptools src-layout, play2048 entry point); move tests into test/ with real pytest assertions (test_board.py, test_ai.py) replacing the old __main__ print-based checks in board.py and the random game-simulation block in AI.py - UI: reposition Score/Step/Time in the title bar and always show both Step and Time in both play modes; fix the AI-mode timer to track real elapsed time instead of counting AI move steps, with mm:ss.mmm precision - UI: restyle the customize-size and level-selection pages to match the start page's theme (scaled fonts, consistent palette), sharing layout/font-scale helpers instead of duplicated magic numbers - UI: add Esc to return to the home page from a paused or finished game - Add README with install/run/test instructions - Add .gitignore for pycache/egg-info build artifacts, drop stale tracked .pyc files Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.