This is a template repository that can give you a start in modelling a boardgame.
This template only contains the basis for the Haskell model without a web UI.
To get your own copy of this repository you should "clone" it in one of the following ways:
Click the "Use this template" button and follow the instructions.
From GitHub Docs: Creating a repository from a template
If you are use the GitHub CLI you can enter the following command:
gh repo create <repo-name> --template Boardgame-DSL/Basic-Boardgame-Template
If you don't use GitHub, you can simply download the template as a zip or a tarball.
This template uses Cabal, you can familiarize yourself with it over on their web page.
Before you start coding you should probably customize the cabal file so that it
matches your project. In the file Basic-Boardgame-Template.cabal
,
change the package name (it's currently name: Basic-Boardgame-Template
) and
the executables name (currently executable: BasicBoardgame-Template
) to you
projects name, then change the name of the file itself.
Test you project with the Cabal command cabal new-run
. Write you code in
src/Main.hs
.