API

Module providing Random variable generators.

class demineur.Demineur(fichier_sauvegarde='demineur.json', difficulte='moyen')[source]

Bases: object

Class representing a Deminer game

afficher_grille()[source]

A Function to show the game’s board

charger_jeu()[source]

Load the game state from a JSON file.

decouvrir_cases(x, y)[source]

A Function to uncover a cell

jouer()[source]

A Function to launch the game.

marquer_case(x, y)[source]

Mark or unmark a cell with a flag.

sauvegarder_jeu()[source]

Save the current game state to a JSON file.