Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

cnelsonsic/cardscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cardscript

A scriptable, event-driven card game processing engine.

Build Status

Presuming a card game where there is a resource that is produced somehow, that powers all the effects a card can take.

At its core is a stack.

In order to play a creature, the following must occur:

The player must activate resources (which puts them on the stack). The stack then contains, say, 5 resources, one after the other. Then the player places a spell onto the stack, a creature. When all players choose not to put a spell onto the stack, the stack resolves. The creature resolves first, which as part of its script, pops enough resources from the stack to satisfy its resource requirements. Now, the stack is empty. The creature is placed into the zone known as "in play". The resources are destroyed as part of the creature's script.

Development

Hooks

Run python ./hooks/bootstrap.py to bootstrap your clone with the pre-commit hooks for this project. You can find them in the hooks directory.

About

A scriptable card game processing engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages