Coder Social home page Coder Social logo

sudoku_resolver's Introduction

Per eseguire i test su MAC e forward chaining cambiare i parametri in input all'interno della chiamata alla funzione test() nel main.

Per eseguire il test sul dataset casuale passare come parametro difficulty = 0.

Per eseguire il test senza MRV va sostituita in entrambe le versioni di backtraking la riga: 'var = sudoku.GetVariableMRV()'
    con 'var = sudoku.GetRandomVariable()' //Attenzione questo test è particolarmente lento

Per eseguire il test sull'ordinamento delle variabili bisogna aggiungere il codice nel file TestSorting.txt al main.Py
    e cambiare la funzione test(difficulty, nTest) nel main con TestSorting()
        //Ho scelto di tenere questo test separato in modo da rendere il codice più ordinato, considerando che
          non è il focus del progetto

Per generare il dataset e salvarlo su un file utilizzare: SaveSudokuToFile(GeneratePuzzle(difficulty), Filename)

Materiale per la creazione del sudoku risolto:
- https://stackoverflow.com/questions/45471152/how-to-create-a-sudoku-puzzle-in-python

Sito utillizzato per la valutazione dell'unicità del sudoku e della difficoltà:
- https://www.thonky.com/sudoku/solution-count
- https://www.thonky.com/sudoku/evaluate-sudoku

sudoku_resolver's People

Contributors

ganjiro avatar trellixvulnteam avatar

Watchers

James Cloos avatar  avatar

Forkers

trellixvulnteam

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.