Giter VIP home page Giter VIP logo

mazette's People

Contributors

martinidry avatar

Stargazers

 avatar  avatar

Watchers

 avatar

mazette's Issues

MazeUtils::enclosures ne fonctionne pas pour un labyrinthe particulier

Données :

┌───┬───┬─────┐
├─╴ └─┐ │ ╷ ┌─┤
├───┐ ├─┘ │ │ │
├─┬─┘ ╵ ╷ └─┤ │
│ │ ┌─┐ └─┐ │ │
│ └─┘ ├─┐ ╵ │ │
└─────┴─┴───┴─┘

Résultat :

MazeUtils.enclosures(maze) = 5

Attendu :

MazeUtils.enclosures(maze) = 6

Observations :

Le problème est causé par l'ilôt présent en bas à droite. Lorsqu'on lance l'algorithme, la partie en haut à gauche a ses cellules numérotées 1 et la partie en bas à droite a ses cellules numérotées 2.
4ème ligne, 4ème colonne : La cellule est numérotée à 1 et l'indice 2 disparaît de la gauche de l'ilôt. Par contre l'indice 2 est encore présent dans la ligne précédente et il va être répliqué sur la partie droite de l'ilôt.
6ème ligne, 6ème colonne : La même opération est à nouveau répétée.

Problème : l'indice 2 disparaît 2 fois alors qu'il ne doit être compté qu'une fois ; cet écart de 1 se retrouve dans le résultat final.

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.