Skip to content

Lean-zh/lean4game

This branch is 85 commits behind leanprover-community/lean4game:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c20d807 · Jul 10, 2024
Feb 29, 2024
Jan 20, 2024
Jul 10, 2024
Jul 10, 2024
Mar 26, 2024
Apr 10, 2024
Dec 9, 2023
Jul 19, 2023
Oct 31, 2023
Nov 15, 2022
Apr 11, 2024
Dec 9, 2023
Nov 9, 2023
Nov 8, 2023
Apr 10, 2024
Mar 24, 2024
Mar 11, 2024
Jun 4, 2024

Repository files navigation

Lean 4 Game

This is the source code for a Lean game platform hosted at adam.math.hhu.de.

Creating a Game

Please follow the tutorial Creating a Game. In particular, the following steps might be of interest:

Documentation

The documentation is very much work in progress but the linked documentation here should be up-to-date:

Game creation API

Frontend API

Backend

not fully written yet.

  • Server: describes the server part (i.e. the content of server/ und relay/).

Contributing

Contributions to lean4game are always welcome!

Translation

The interface can be translated to various languages. For adding a translation, one needs to do the following:

  1. In client/src/config.json, add your new language. The "iso" key is the ISO language code, i.e. it should be accepted by "i18next" and "GNU gettext"; the "flag" key is once accepted by react-country-flag.
  2. Run npm run translate. This should create a new file client/public/locales/{language}/translation.json. (alternatively you can copy-paste client/public/locales/en/translation.json)
  3. Add all translations.
  4. Commit the changes you made to config.json together with the new translation.json.

For translating games, see Translating a game.

Security

Providing the use access to a Lean instance running on the server is a severe security risk. That is why we start the Lean server with bubblewrap.

Credits

The project has pimarily been developed by Alexander Bentkamp and Jon Eugster.

It is based on ideas from the Lean Game Maker and the Natural Number Game (NNG) by Kevin Buzzard and Mohammad Pedramfar, and on Patrick Massot's prototype: NNG4.

Packages

No packages published

Languages

  • TypeScript 51.3%
  • Lean 38.3%
  • CSS 5.8%
  • JavaScript 4.0%
  • Other 0.6%