Files
NNG/README.md

43 lines
1.9 KiB
Markdown
Raw Normal View History

2023-04-25 18:30:25 +02:00
# NNG4
2023-11-09 17:51:20 +01:00
This is the lean4 version of the classical *Natural Number Game*. It uses
the [Lean4 Game Engine](https://github.com/leanprover-community/lean4game) and is
running live at [adam.math.hhu.de](https://adam.math.hhu.de).
2023-04-26 00:35:33 +02:00
2023-04-28 18:27:59 +02:00
The game was initially designed for lean3 and has been adapted for lean4. [See lean3 version](https://www.ma.imperial.ac.uk/~buzzard/xena/natural_number_game/).
2023-09-10 12:47:00 +02:00
## Getting Started
2023-11-09 17:51:20 +01:00
You can develop the game as any lean project and use `lake build` to build it.
2023-09-10 12:47:00 +02:00
2023-11-09 17:51:20 +01:00
Moreover, there are multiple ways to run the game while developing it, which are described in
[Running Games Locally](https://github.com/leanprover-community/lean4game/blob/main/doc/running_locally.md)
2023-09-10 12:47:00 +02:00
### Nix Flake
If you use Nix, you can run the game locally without Docker or VSCode:
```bash
nix run # Start the game server at http://localhost:3000
```
See [FLAKE_USAGE.md](./FLAKE_USAGE.md) for complete documentation.
2023-04-28 18:27:59 +02:00
## Contributing
2023-11-09 17:51:20 +01:00
PRs/Issues fixing typos, inconsistencies, missing hints, etc. are very welcome!
2024-03-21 14:43:03 +01:00
### Translations
2025-09-27 11:48:07 +08:00
We happily accept translations of the game into different languages! You can use `.i18n/en/Game.pot` and translate it into `.i18n/{lang}/Game.po` where `{lang}` is the ISO language code like `fr` or `en_UK`, using for example POEdit.
2024-03-21 14:43:03 +01:00
We would like the following requirements for a translation PR:
2024-04-11 12:08:46 +03:00
- One independent person from the community, who understands the language, gives a review on the PR. You could for example look at the [Lean Community Map](https://leanprover-community.github.io/meet.html) or ask on Zulip. Such a review can be quite generic and does not have to be super detailed.
2024-03-21 14:47:08 +01:00
- In the credits (i.e. in the string translating them), ideally you should add yourself as a translator for this language.
2024-03-21 14:43:03 +01:00
2023-11-09 17:51:20 +01:00
## Documentation
2023-04-28 18:27:59 +02:00
2023-11-09 17:51:20 +01:00
See [Creating a Game](https://github.com/leanprover-community/lean4game/blob/main/doc/create_game.md) at
the [lean4game repo](https://github.com/leanprover-community/lean4game) for a detailed
explanation.