Skip to content

Node.js module and command line program to play Dominion, the card game by Donald X. Vaccarino.

Notifications You must be signed in to change notification settings

andrewrk/dominion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dominion

Node.js module and command line program to play Dominion, the card game by Donald X. Vaccarino.

Features

  • Shuffler picks random cards to play with.
  • Supports Base Set. Other sets in progress.
  • You can choose CLI to play a command line interface game against an AI.
  • Big Money strategy is implemented.
  • Naive strategy - play +Actions first, then action cards, then buy the most expensive card, choosing randomly when there is a tie. Never buy Curses. Tries to do the best thing given the available moves, but does no planning or reacting to opponent.

Command Line Usage

Usage: dominion-cli [--player <AI_Name>] [--seed <seed>]
AIs available:
  naive
  bigmoney
  cli
Sets available:
  Base Set
  Intrigue
  Adventures
Dominion is 2-4 players. Use a correct number of --player arguments.

Node.js Module Usage

See lib/main.js for API example. Documentation is prioritized after getting all the cards from all the sets working.

About

Node.js module and command line program to play Dominion, the card game by Donald X. Vaccarino.

Resources

Stars

Watchers

Forks

Packages

No packages published