Skip to content

Simple card game design mostly for AI testing and ML experimentation

License

Notifications You must be signed in to change notification settings

kefniark/kaaya-cardgame

Repository files navigation

Card game

Simple card game design mostly for AI testing and ML experimentation (not designed to be a real card game).

Play Here !!!

Based on:


Rules

  • 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

About cards

Card are dumb simple and have only 4 properties:

  • atk
  • def
  • cost
  • level (which provides +1/+1 at each levelup)

Main difference with a normal card game

  • No card abilities
  • No event or counter/trap card
  • No deck building (randomly generated)
  • No hero with abilities

Main strategy

  • 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

Development

Getting Started

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

Build

To make a build (generated in build/)

npm run build

About

Simple card game design mostly for AI testing and ML experimentation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published