Skip to content

Fixes debug log for moves#160

Merged
LiquidityC merged 2 commits intodevfrom
fix_moves_debug_print
Mar 14, 2026
Merged

Fixes debug log for moves#160
LiquidityC merged 2 commits intodevfrom
fix_moves_debug_print

Conversation

@LiquidityC
Copy link
Member

@LiquidityC LiquidityC commented Mar 14, 2026

Summary by CodeRabbit

  • Bug Fixes

    • Enhanced high score storage handling to support larger move counts through updated data type binding.
  • Style

    • Improved debugging output formatting for high score information with explicit key=value pairs.

@LiquidityC LiquidityC enabled auto-merge (squash) March 14, 2026 21:49
@coderabbitai
Copy link

coderabbitai bot commented Mar 14, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f94085de-1db5-4846-b841-d5cc1e899c2b

📥 Commits

Reviewing files that changed from the base of the PR and between e373c5f and 22074b2.

📒 Files selected for processing (1)
  • src/hiscore.c

📝 Walkthrough

Walkthrough

Modified debugging output formatting for high score storage from a compact printf format to an explicit key-value format. Adjusted SQLite parameter binding for the moves field from 32-bit to 64-bit integer to ensure correct data type handling.

Changes

Cohort / File(s) Summary
High Score Debug Output & Database Binding
src/hiscore.c
Updated debug output for high score saves from compact format ("%dg %dpl %dl %um") to labeled format with explicit key-value pairs ("gold=%g player_level=%d, level=%d, moves=%u"). Adjusted SQLite binding for moves parameter to use 64-bit integer instead of 32-bit.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

🐰 The scoreboard gleams with clarity now,
No more cryptic symbols—we know how!
Gold, levels, moves in plain sight,
Sixty-four bits making storage right!

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly describes the main change: fixing the debug log output for the moves parameter in high score tracking.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix_moves_debug_print
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@LiquidityC LiquidityC merged commit b3d0d81 into dev Mar 14, 2026
13 checks passed
@LiquidityC LiquidityC deleted the fix_moves_debug_print branch March 14, 2026 22:06
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