项目作者: kefniark

项目描述 :
Simple card game design mostly for AI testing and ML experimentation
高级语言: TypeScript
项目地址: git://github.com/kefniark/kaaya-cardgame.git
创建时间: 2019-10-23T17:19:19Z
项目社区:https://github.com/kefniark/kaaya-cardgame

开源协议:MIT License

下载


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

  1. npm install
  2. 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/)

  1. npm run build