Giter VIP home page Giter VIP logo

pythonmaze's Introduction

PythonMaze

Génération de labyrinthe (différents type d'algorithme) sous python

Pour essayer le jeu, ouvrez le fichier 'Maze.py' il vous permettra de générer un labyrinthe selon vos critères :

-Taille :

        'Easy' : 10 * 10

        'Normal': 25 * 25
        
        'Hard' : 60 * 30
        
         'Z-Hard' : 60 * 30 en se déplaçant dans un rayon de 10 * 10

-Algorithme de génération utilisé:

         Fusion Aléatoire

         Exploration Exhaustive
                                 
         Algorithme de Prim

-Avec ou sans tracer

Une fois le labyrinthe créer vous pouvez:

  -Vous déplacez à l'aide des flèches (haut,bas,droite et gauche)

  -Regénérer un nouveau labyrinthe avec les mêmes paramètres en maintenant la touche R

  -Revenir au menu avec la touche B

Vous pouvez également essayer de battre votre score en cliquant sur 'replay' dans le menu

Les fichiers AlgorithmeDePrim.py, ExplorationExhaustive.py, FusionAleatoire.py sont là uniquement pour génerer le labyrinthe

Mais leur déclinaison 'Visualisation' permette de visualiser la génération du labyrinthe en temps réel

Appuyez sur espace pour lancer la génération jusqu'à la fin ou maintenez la flèche droite pour une génération pas à pas

Le fichier solveMaze.py génère un labyrinthe et trouve le chemin de sortie en temps réel

Enfin, le fichier save.csv est la pour gérer les sauvegardes

pythonmaze's People

Contributors

juju21555 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

epideixx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.