Coder Social home page Coder Social logo

mjgpy3 / dominion Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4.84 MB

Dominion kingdom generation

Home Page: https://mjgpy3.github.io/dominion/

Rust 84.81% HTML 0.57% JavaScript 13.94% CSS 0.67%
dominion-card-game rust wasm wasm-bindgen wasm-example

dominion's Introduction

Dominion

๐Ÿ‘‘
๐Ÿฆ€

Generate kingdoms (card configurations) for the deck builder Dominion.

Site

The site branch is automatically deployed to https://mjgpy3.github.io/dominion/.

This site is using wasm-pack to generate WASM code from the same rust code that powers the binary.

Running?

No nifty binaries, use cargo run -- --help to see the available options.

Why?

This is a port of Haskell project that I have for generating and tracking favorite kingdoms. I wanted to see what Rust is all about.

Example

If you run, say

cargo run -- --ban-cards Witch \
             --include-cards YoungWitch \
             --include-expansions Base2 Renaissance \
             --project-count 2 \
             --hists \
             --pretty

You might get a kingdom like

------------------ SETUP ------------------

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Kingdom Cards โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Cornucopia
 - Young Witch 
Base2/Base1
 - Chapel 
 - Festival 
 - Gardens 
 - Laboratory 
 - Moneylender (Bane)
 - Throne Room 
Renaissance
 - Old Witch 
 - Patron 
 - Villain 
Base2
 - Sentry 

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Project Cards โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Renaissance
 - CropRotation
 - Piazza


------------------ HISTS ------------------

Cards' Costs:
-------------
2: โ–  (1)
3:  (0)
4: โ– โ– โ– โ– โ–  (5)
5: โ– โ– โ– โ– โ–  (5)
6:  (0)

Cards' types:
-------------
Action  : โ– โ– โ– โ– โ– โ– โ– โ– โ– โ–  (10)
Attack  : โ– โ– โ–  (3)
Reaction: โ–  (1)
Victory : โ–  (1)
Treasure:  (0)
Duration:  (0)

Expansions' cards:
-----------------
Base1      : โ– โ– โ– โ– โ– โ–  (6)
Base2      : โ– โ– โ– โ– โ– โ– โ–  (7)
Renaissance: โ– โ– โ–  (3)
Cornucopia : โ–  (1)

dominion's People

Contributors

mjgpy3 avatar

Watchers

 avatar  avatar

dominion's Issues

Add a UI test

Just to double-check that we haven't broken things

Correctly handle "Zebra"

It implies an additional kingdom card to be split in the Zebra pile.

This entails

  • some new modeling
  • a potential new error
  • interesting interaction with Young Witch (technically enabling 12 kingdom cards)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.