This is a repo for the Heidelberg Lean Game, to be used on the Lean Game Server.
The official instructions to build such a repo are available at the lean4game repository:
-
Make sure you have Lean and node.js installed on your machine.
-
Clone this repo, go to the folder where you cloned it, and and run the following commands:
lake update -Rlake build
-
Make sure you have also cloned the lean4game repo (in the same parent folder as
HeidelbergLeanGame). -
Go to the
lean4gamefolder and run the following commands:npm installnpm start
-
Open your browser and go to
http://localhost:3000/#/g/local/HeidelbergLeanGame.
If you update the files of the game, run lake build again (if the web server is running, just reload your browser tab top see the updated version). This will also work if you are working on a branch of your repo that is not the main branch.
If you want to make your own game available online, check out the official instructions.
The steps are the following:
In the GitHub repo, go to the GitHub Actions tab and make sure that the build the game and save artifact action has run properly (you must push/merge to the main branch for that).
Click on this to check out the build report:
Open the What's next? part of the report.
You see two links with your (actual) user name in it.
The first link triggers the import of the game to the Lean Game Server (it takes a few minutes and shows a brief activity log). The second link takes you to the published version.



