0.1.0
Release 0.1.0: Initial Release 🎉
Game Logic and State Management
-
Add context and refactor game logic (13e0b63): Introduce
GameContextandScreenContextfor centralized state management. Refactorapp.tsxto utilize these contexts, improving code readability and maintainability. Enhance game logic with new components likeCurrentPlayerandPlayerScores. Update helper functions to support newBoardPositiontype, and add AI move generation for single-player mode. -
Refactor
generateComputerMovefor clarity (67ef4b8): UpdategenerateComputerMoveto acceptcurrentBoardStateas a parameter, improving clarity and separation of concerns. Remove unused validation functions and adjust computer move delay to 2 seconds. Add logging for debugging purposes. Ensure game reset handles both single and multiplayer modes correctly. -
Pass
isMultiplayertoGame(3323936): UpdateAppcomponent to passisMultiplayerprop toGame. This ensures that the multiplayer state is correctly handled within theGamecomponent. Removed unnecessary console log for cleaner output.
UI Enhancements
- Add game mode state and enhance UI (83b2c7d): Introduce
gameModestate to manage single and multiplayer modes effectively. Enhance the UI with colored player indicators usingchalkfor better clarity. RefactormakeMoveto includeplayerparameter, ensuring accurate move tracking. Simplify game reset logic and streamline menu navigation.
Dependency Updates
- Add
release-itdependency (5ba5525): Includerelease-itversion ^17.10.0 in the dependencies to automate versioning and package releases. This addition simplifies the release process by handling version bumps, changelog generation, and publishing tasks.
Full Changelog: https://github.com/gfargo/tCheckers/commits/0.1.0