A completely adaptable card game!
Node.js is required to install dependencies and run scripts via npm
.
Command | Description |
---|---|
npm install |
Install project dependencies |
tsc -watch |
Compiles any change within the src folder to the dist folder |
After cloning the repository using the 'git clone' command, run 'npm install' from the project directory. Then, you can start the compilation using the tsc -watch
command.
In the /dist/images
folder are the images of the cards:
NOTE: The image that is the back of the card must have the name back
_design-default
In the /src/index.ts
file you can configure the game creation logic:
In the /src/utils/ComparisonList.ts
file you can configure the game validation logic: