Closed supreme2580 closed 4 days ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
mancala | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 21, 2024 9:42pm |
mancala-pkco | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 21, 2024 9:42pm |
The changes in this pull request involve updates to the game-board.tsx
and pits.tsx
files. In game-board.tsx
, the access method for player addresses has been modified to reflect a new structure in the account
object, simplifying the logic for determining player positions and filtering seed counts. The rendering of player pits has also been adjusted for clarity and efficiency. In pits.tsx
, the handleMove
function in the TopPit
component has been altered to change how user feedback is provided based on address comparisons, while the BottomPit
component remains unchanged.
File | Change Summary |
---|---|
client/src/components/gameplay/game-board.tsx | Updated player address access from account.address to account.account.address . Simplified player position logic and altered filtering for seed counts using mancalaPitModels . Modified rendering logic for TopPit and BottomPit components. Added debugging statements for player position and address. |
client/src/components/pits.tsx | Modified the handleMove function in TopPit to change the address comparison from !== to === , affecting user feedback. The BottomPit component remains unchanged. |
game-board.tsx
regarding the rendering logic and layout of player pots are related to the modifications made in the main PR, which also involves rendering adjustments and the handling of player addresses.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Fixed gameplay bug
Summary by CodeRabbit
New Features
Bug Fixes