Skip to content

lucasinmanuel/jokenpo-of-cards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jokenpô of Cards

A completely adaptable card game!

Requirements

Node.js is required to install dependencies and run scripts via npm.

Available Commands

Command Description
npm install Install project dependencies
tsc -watch Compiles any change within the src folder to the dist folder

Writing Code

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.

Customization of the Cards

In the /dist/images folder are the images of the cards:

Example of images folder

Example of card images

NOTE: The image that is the back of the card must have the name back_design-default

Customization of the Game

In the /src/index.ts file you can configure the game creation logic:

Example of game creation logic

In the /src/utils/ComparisonList.ts file you can configure the game validation logic:

Example of game validation logic