/NNG4

Natural Number Game

Primary LanguageLeanApache License 2.0Apache-2.0

NNG4

This is the lean4 version of the classical Natural Number Game. It uses the Lean4 Game Engine and is running live at adam.math.hhu.de.

The game was initially designed for lean3 and has been adapted for lean4. See lean3 version.

Contributing

If you want to contribute to the Natural Number Game, it is probably best if you ask us for access and push on a non-main branch in this repo. That way a github-action will build the game automatically.

See the documentation for an explanation of the game commands.

Codespaces and Gitpod

You can work on this repository using Gitpod : Open in Gitpod

You can also work on it using Github codespaces (click "Code" and then "Codespaces" and then "create codespace on main").

Creating a new game

In order to create a new game, click "use this template" above to create your own game. That way there is a github action that can build a docker image from your main branch which can be used to add the game to the server at adam.math.hhu.de.

Development

Installation

The full instructions are at Running games locally. In particular, the recommended setup is to have docker installed on your computer and then click on the pop-up "Reopen in Container" which is shown when opening this project in VSCode.

The game is then accessible at localhost:3000/#/g/local/game.