Skip to content

About

Lean Game, Institute for mathematics, Heidelberg University

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Heidelberg Lean Game

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:

Quick start to using this repo locally

  • 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 -R
    • lake build
  • Make sure you have also cloned the lean4game repo (in the same parent folder as HeidelbergLeanGame).

  • Go to the lean4game folder and run the following commands:

    • npm install
    • npm 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.

Publishing the game on the Lean Game Server

If you want to make your own game available online, check out the official instructions.

The steps are the following:

GitHub action

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).

Screenshot of build the game and save artifact action

Check out the build report

Click on this to check out the build report:

Screenshot showing where to click to go to the next step

Trigger the import and check out the link

Open the What's next? part of the report.

Screenshot showing where to click to publish the game on the Lean Game server

You see two links with your (actual) user name in it.

Screenshot showing where to click to publish the game on the Lean Game server

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.

About

Lean Game, Institute for mathematics, Heidelberg University

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages

Generated from hhu-adam/GameSkeleton