Simple card game design mostly for AI testing and ML experimentation (not designed to be a real card game).
Based on:
- Kaaya : Data management
- Vuejs : For templating
- Bulma : Css framework
- Typescript : because I need types :D
- each player start with:
- a deck of 25 cards
- 16 hp
- and draw 4 card as his hand
- at the beginning of each turn:
- the player first reset his board cards (remove damages, tap, ...)
- draw a new card
- and from here can do few actions
- use some mana to pay a card cost and place it on the board
- attack with a card on the board
- end the turn if there is nothing else to do
Card are dumb simple and have only 4 properties:
- atk
- def
- cost
- level (which provides +1/+1 at each levelup)
- No card abilities
- No event or counter/trap card
- No deck building (randomly generated)
- No hero with abilities
- Based on the order of attack, it's easy to anticipate damage as they are applied in order:
- the first card to attack will attack the first enemy card
- the second card to attack will attack the second enemy card
- ...
- It's important to keep cards alive and make them level up
If you want to take a look at the code or help, it's quite easy to get started
npm install
npm run dev
This will start a server on http://localhost:8080/ where you can test few samples with the current version
To make a build (generated in build/
)
npm run build