Fork di lean4game del PHC per la settimana matematica del 2025 https://lean4game.phc.dm.unipi.it/
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Bulhwi Cha 6dca770dbf update npm deps 4 months ago
.github/workflows add manual trigger to github action 12 months ago
.vscode Fix minor typos 1 year ago
client implement stats script 5 months ago
doc fix stats 5 months ago
relay Refactored stats.sh to display approx. cpu usage and mem usage in .csv format 5 months ago
server Update LetIntros.lean 7 months ago
.gitignore Remove gitignore introduced by accidently lake init 11 months ago
LICENSE Create LICENSE 2 years ago
NOTES.md remove docker isntructions 1 year ago
NOTES_SUBDOMAIN.md notes subdomain 2 years ago
README.md Update README.md 7 months ago
ecosystem.config.cjs separate lean server from socket server 1 year ago
env.d.ts fix redirect from landing page in dev container #145 1 year ago
index.html add note for servers with different base url 6 months ago
package-lock.json update npm deps 4 months ago
package.json implement i18next and i18next-scanner 11 months ago
tsconfig.json fix ts warnings 11 months ago
vite.config.ts add note for servers with different base url 6 months ago

README.md

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