Skip to content

Feat/m2 t3 hand evaluation logic#116

Open
4eckd wants to merge 8 commits intostagingfrom
feat/M2-T3-Hand-Evaluation-Logic
Open

Feat/m2 t3 hand evaluation logic#116
4eckd wants to merge 8 commits intostagingfrom
feat/M2-T3-Hand-Evaluation-Logic

Conversation

@4eckd
Copy link
Copy Markdown
Collaborator

@4eckd 4eckd commented Jan 25, 2026

No description provided.

4eckd and others added 8 commits January 25, 2026 01:00
- Expand hand.test.ts from 17 to 34 comprehensive test cases
- Add tests for addCardToHand, splitHand, doubleDownHand, compareHands
- Add additional edge case tests for canDouble (already doubled, split hand)
- Achieve 100% statement and branch coverage for hand.ts
- All 34 tests passing with full spec coverage

Test Results:
- Total Tests: 34 passing ✅
- Statement Coverage: 100% ✅
- Branch Coverage: 100% ✅
- Function Coverage: 100% ✅

Acceptance Criteria Met:
✅ Hand evaluation logic fully implemented and tested
✅ Test coverage >80% (achieved 100%)
✅ All edge cases covered (multiple aces, soft/hard hands, etc.)
✅ Type safety maintained
✅ No console.log or TODO statements

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
The github-script action was failing with 'Unexpected identifier' error
due to malformed template literal in the milestone check output.
Replaced complex template literal with simple string concatenation.

- Simplified template literal to string concatenation for milestone summary
- Removed emoji characters that were causing parsing issues
- Maintained same functionality with improved syntax compatibility

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Added null check for pr.milestone before accessing .title property.
When a PR doesn't have a milestone assigned, pr.milestone is null,
causing a TypeError when trying to read the title property.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Added null/undefined checks before accessing pull_request and
check_run_id properties. The workflow was failing because:

1. context.payload.pull_request may not exist in all event contexts
2. steps.status-check.outputs.check_run_id may be undefined if the
   status check step didn't execute successfully

Added guards to prevent attempting to access properties on undefined objects.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@4eckd 4eckd added this to the Milestone 2: Game Engine milestone Jan 25, 2026
@jlucus jlucus added milestone: M2 M2 - Onboarding Infrastructure task: T3 T3 - Third task/deliverable in sequence labels Feb 7, 2026
@4eckd 4eckd closed this Apr 21, 2026
@4eckd 4eckd reopened this Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

milestone: M2 M2 - Onboarding Infrastructure task: T3 T3 - Third task/deliverable in sequence

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants