Thank you for considering contributing to this project! Before you start, please take a moment to read our contributing guidelines.
This project follows a specific structure to maintain organization and clarity. Here's an overview:
- The source code is located in the
src
folder. - Configuration files:
.eslintrc.json
: Configuration for ESLint..prettierrc
: Configuration for Prettier.
The src
folder contains the following subfolders:
-
constants
- Purpose: Contains files with constant ENUMs, error messages, and static names used in the project.
- Guidelines: If adding new constants, they should be placed in this folder.
-
data
- Purpose: Contains files/classes representing real-world objects (e.g., cards).
- Guidelines: Add new cards or methods related to real-world objects in this folder.
-
helpers
- Purpose: Contains files with helper functions.
- Guidelines: Add new helper functions to this folder.
-
interfaces
- Purpose: Contains all project interfaces, representing the structure of real-world objects.
- Guidelines: Add new interfaces to this folder.
-
models
- Purpose: Contains files/classes representing the core logic of card games (e.g., Rummy, TeenPatti).
- Guidelines: Add new games (files/classes) to this folder. Utilize interfaces, helpers, constants, and data from other folders.
-
tests
- Purpose: Contains test files for models, helpers, and data.
- Guidelines: Create a test file for each file in the models folder, as well as for helpers and data.
- The
index.ts
file gathers all project files and exports them for external use.
- Fork the repository.
- Create a branch for your feature or bug fix.
- Make your changes within the appropriate folders.
- Ensure that your code adheres to the coding style defined in
.eslintrc.json
and.prettierrc
. - Submit a pull request.
- while committing your update, please use VS code's Conventional Commits extension and explain your changes in commit briefly to make it easy to understand and review.
All contributions will be reviewed. Be sure to address any feedback provided.
Thank you for contributing!