Name | marienbad JSON |
Version |
0.1.1
JSON |
| download |
home_page | |
Summary | A toolsuite for win at Marienbad (Nim) game. |
upload_time | 2023-01-03 17:59:41 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3 |
license | |
keywords |
marienbad
nim
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Marienbad
A simple toolsuite for help you to win at [Marienbad](https://fr.wikipedia.org/wiki/Jeu_de_Marienbad) game, a [Nim](https://en.wikipedia.org/wiki/Nim) game.
It is recommended to use the [PyPy](https://www.pypy.org/) interpreter instead of the CPython standart.
## Generator
Pour utiliser cet outil, entrez la commande :
```bash
marienbad-generator
```
Pour voir toutes les options disponibles :
```bash
marienbad-generator --help
```
Vous pouvez aussi le démarrer depuis un script python :
```python
import marienbad
marienbad.generator.main()
```
Bien sûr, vous pourvez ré-utiliser certaines fonctions :
```python
from marienbad.generator import checkCombination
checkCombination([1,3,5,7]) # True
checkCombination([1,3,6,7]) # False
```
La fonction `generateTable` imprime le résultat sur la sortie standart. Pour récupérer cette sortie, utilisez le script suivant :
```python
import sys
from io import StringIO
# rediriger stdout dans un buffer :
sys.stdout = StringIO()
# appel de la fonction qui remplira stdout (donc le buffer)
generateTable(10,10)
# récupérer le contenu du buffer :
s = sys.stdout.getvalue()
# fermer le buffer :
sys.stdout.close()
# rediriger stdout vers la sortie standart :
sys.stdout = sys.__stdout__
# le résultat est maintenant dans la variable s
```
Raw data
{
"_id": null,
"home_page": "",
"name": "marienbad",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": "",
"keywords": "Marienbad,Nim",
"author": "",
"author_email": "alberic89 <alberic89@gmx.com>",
"download_url": "https://files.pythonhosted.org/packages/5f/db/1cbedd4d21a6f45ad6a183a3636efc9b92ae22005c9ed577d04cd51c9be1/marienbad-0.1.1.tar.gz",
"platform": null,
"description": "# Marienbad\n\nA simple toolsuite for help you to win at [Marienbad](https://fr.wikipedia.org/wiki/Jeu_de_Marienbad) game, a [Nim](https://en.wikipedia.org/wiki/Nim) game.\n\nIt is recommended to use the [PyPy](https://www.pypy.org/) interpreter instead of the CPython standart.\n\n## Generator\n\nPour utiliser cet outil, entrez la commande :\n```bash\nmarienbad-generator\n```\n\nPour voir toutes les options disponibles :\n```bash\nmarienbad-generator --help\n```\n\nVous pouvez aussi le d\u00e9marrer depuis un script python :\n```python\nimport marienbad\nmarienbad.generator.main()\n```\n\nBien s\u00fbr, vous pourvez r\u00e9-utiliser certaines fonctions :\n```python\nfrom marienbad.generator import checkCombination\ncheckCombination([1,3,5,7]) # True\ncheckCombination([1,3,6,7]) # False\n```\n\nLa fonction `generateTable` imprime le r\u00e9sultat sur la sortie standart. Pour r\u00e9cup\u00e9rer cette sortie, utilisez le script suivant :\n```python\nimport sys\nfrom io import StringIO\n\n# rediriger stdout dans un buffer :\nsys.stdout = StringIO()\n\n# appel de la fonction qui remplira stdout (donc le buffer)\ngenerateTable(10,10)\n\n# r\u00e9cup\u00e9rer le contenu du buffer :\ns = sys.stdout.getvalue()\n\n# fermer le buffer :\nsys.stdout.close()\n\n# rediriger stdout vers la sortie standart :\nsys.stdout = sys.__stdout__\n\n# le r\u00e9sultat est maintenant dans la variable s\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "A toolsuite for win at Marienbad (Nim) game.",
"version": "0.1.1",
"split_keywords": [
"marienbad",
"nim"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0199fd94162e07ba1af51eb3eb8e55f53855c35ef073d58a71b6e7e00a7c71de",
"md5": "f897d4aa4c29b54d8157fcc03a9fa242",
"sha256": "a8309b733aa8a6c63cae167ce451f3df966651b313da9f5062ae545984929255"
},
"downloads": -1,
"filename": "marienbad-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f897d4aa4c29b54d8157fcc03a9fa242",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 17965,
"upload_time": "2023-01-03T17:59:40",
"upload_time_iso_8601": "2023-01-03T17:59:40.160420Z",
"url": "https://files.pythonhosted.org/packages/01/99/fd94162e07ba1af51eb3eb8e55f53855c35ef073d58a71b6e7e00a7c71de/marienbad-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5fdb1cbedd4d21a6f45ad6a183a3636efc9b92ae22005c9ed577d04cd51c9be1",
"md5": "6cfaff1171e405bed39cd3d7698b16da",
"sha256": "835396942c5d1204fc3c79304257b9b74eabd1876fb3a7809f178a3b60965340"
},
"downloads": -1,
"filename": "marienbad-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "6cfaff1171e405bed39cd3d7698b16da",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 17100,
"upload_time": "2023-01-03T17:59:41",
"upload_time_iso_8601": "2023-01-03T17:59:41.588760Z",
"url": "https://files.pythonhosted.org/packages/5f/db/1cbedd4d21a6f45ad6a183a3636efc9b92ae22005c9ed577d04cd51c9be1/marienbad-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-03 17:59:41",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "marienbad"
}