Skip to content

Restructure into src/test package layout and improve UI with Claude Code changes - #2

Open
CanYouTeachMeHowToCode wants to merge 2 commits into
mainfrom
develop
Open

Restructure into src/test package layout and improve UI with Claude Code changes#2
CanYouTeachMeHowToCode wants to merge 2 commits into
mainfrom
develop

Conversation

@CanYouTeachMeHowToCode

Copy link
Copy Markdown
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

CanYouTeachMeHowToCode and others added 2 commits July 6, 2026 18:32
- 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant