A small collection of code for playing around with Haskell and trying to build an engine for simulating Dominion games. Potentially at some point to test run bots, as well as fledging domain design muscles.
See also Dominion Wiki.
Two excellent simulators are out there that implement much more cards, much more reliably and have loads of strategies defined.
- Get Dart (1.13.2), GHC (7.10.2) and Cabal (1.22.4.0)
- External dependencies, not included
- Get SemanticUI and install into
static/lib/semanticui
- Get Dominion Wiki images and store in
static/images/cards
- Get SemanticUI and install into
- Build Dart sources
dart2js src/dart/main.dart -o static/js/app.js
- Start the server
cabal run web
- Navigate to http://localhost:8080
The build can be docker enabled as well or build as a stand-alone Docker. app
docker build .
docker run -d -p 8000:8000 <image id>