Skip to content

0.1.0

Choose a tag to compare

@gfargo gfargo released this 30 Oct 18:43
· 14 commits to main since this release
5ba5525

Release 0.1.0: Initial Release 🎉

Game Logic and State Management

  • Add context and refactor game logic (13e0b63): Introduce GameContext and ScreenContext for centralized state management. Refactor app.tsx to utilize these contexts, improving code readability and maintainability. Enhance game logic with new components like CurrentPlayer and PlayerScores. Update helper functions to support new BoardPosition type, and add AI move generation for single-player mode.

  • Refactor generateComputerMove for clarity (67ef4b8): Update generateComputerMove to accept currentBoardState as 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 isMultiplayer to Game (3323936): Update App component to pass isMultiplayer prop to Game. This ensures that the multiplayer state is correctly handled within the Game component. Removed unnecessary console log for cleaner output.

UI Enhancements

  • Add game mode state and enhance UI (83b2c7d): Introduce gameMode state to manage single and multiplayer modes effectively. Enhance the UI with colored player indicators using chalk for better clarity. Refactor makeMove to include player parameter, ensuring accurate move tracking. Simplify game reset logic and streamline menu navigation.

Dependency Updates

  • Add release-it dependency (5ba5525): Include release-it version ^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