Skip to main content

Marienbad

A simple toolsuite for help you to win at Marienbad game, a Nim game.

It is recommended to use the PyPy interpreter instead of the CPython standart.

Generator

Pour utiliser cet outil, entrez la commande :

marienbad-generator

Pour voir toutes les options disponibles :

marienbad-generator --help

Vous pouvez aussi le démarrer depuis un script python :

import marienbad
marienbad.generator.main()

Bien sûr, vous pourvez ré-utiliser certaines fonctions :

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 :

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

Metadata

Release files for marienbad 0.1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for marienbad 0.1.2.1
File Size Uploaded
marienbad-0.1.2.1.tar.gz 18.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for marienbad 0.1.2.1
File Interpreter ABI Platform
marienbad-0.1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 38.2 kB

Release files / marienbad-0.1.2.1.tar.gz

Download URL marienbad-0.1.2.1.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6be8951182d21ba60656a4570e160b20fdfea981e9e5ec2b85c829c1802439dd
BLAKE2b-256 checksum
How to use checksums
38bd2e35aad412f3936f88724ac83ea00ab1893f6362b34a9332a2da1cc67d2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release files / marienbad-0.1.2.1-py3-none-any.whl

Download URL marienbad-0.1.2.1-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1be72b82fec65699147517e80122a7b096a8d85d1fcc4b4a05109631fae7479f
BLAKE2b-256 checksum
How to use checksums
40553b79791215e6066452b2483d03b7a64f52600f6a19230faad657fd2bfe89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.1.2.1 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page