Skip to content

feat: Add Connect Four on-chain game example#83

Merged
salazarsebas merged 1 commit into
salazarsebas:mainfrom
abdulomeiza:feat/implement-connect-four
Mar 24, 2026
Merged

feat: Add Connect Four on-chain game example#83
salazarsebas merged 1 commit into
salazarsebas:mainfrom
abdulomeiza:feat/implement-connect-four

Conversation

@abdulomeiza

Copy link
Copy Markdown
Contributor

Closes #68

  • Implement complete Connect Four smart contract using Cougr ECS architecture
  • Add gravity-based piece placement system for column drops
  • Implement win detection for horizontal, vertical, and diagonal patterns
  • Add draw detection for full board scenarios
  • Create comprehensive test suite with 24 passing tests
  • Include full documentation with README.md
  • Configure CI/CD workflow for automated testing and validation
  • Follow Soroban best practices with wasm32v1-none target

Test Results:

  • All 24 tests passing (initialization, validation, win/draw detection)
  • Passes cargo fmt, clippy, and release build checks
  • Demonstrates modular ECS pattern for board game logic

- Implement complete Connect Four smart contract using Cougr ECS architecture
- Add gravity-based piece placement system for column drops
- Implement win detection for horizontal, vertical, and diagonal patterns
- Add draw detection for full board scenarios
- Create comprehensive test suite with 24 passing tests
- Include full documentation with README.md
- Configure CI/CD workflow for automated testing and validation
- Follow Soroban best practices with wasm32v1-none target

Test Results:
- All 24 tests passing (initialization, validation, win/draw detection)
- Passes cargo fmt, clippy, and release build checks
- Demonstrates modular ECS pattern for board game logic
@drips-wave

drips-wave Bot commented Mar 24, 2026

Copy link
Copy Markdown

@abdulomeiza Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@salazarsebas salazarsebas left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@salazarsebas
salazarsebas merged commit e930633 into salazarsebas:main Mar 24, 2026
1 check passed
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.

feat: implement Connect Four with gravity-based board updates

2 participants