Skip to content

machine usable description of Terraforming Mars cards

License

Notifications You must be signed in to change notification settings

SliceOfBread/tm-cards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tm-cards

machine usable description of Terraforming Mars cards

Mainly for use with TM playing bots. The first iteration will include only cards from base+corporate era+Prelude.

All card names now match exactly to the file names used in https://github.com/bafolts/terraforming-mars

Since card names available in the "WaitingFor" data includes spaces and such the simple transformation such as let cardInfo = oAllCards[waitingFor["cards"][0]["name"].replace(/[-'\s]/g,'')];

Using oAllCards.js (instead of cards.js)m you can do things like: if (cardInfo.canPlay()) or any of the various functions like .getVictoryPoints() but don't forget to pass in player, game, etc as needed.

About

machine usable description of Terraforming Mars cards

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published