Sudoku in Python

Abstract

U ovom radu oblikovana je poznata igra Sudoku. Igra je oblikovana u programskom jeziku Python, a sastoji se od 2 programa. Prvi je generator.py koji će izgenerirati slagalicu, drugi je sudoku.py koji pokreće igru. Za vizualiziranje i dokumentiranje procesa oblikovanja korišten je grafički jezik za unificirano modeliranje ( eng. Unified modeling language – UML) u obliku programske podrške, preciznije, alat White Star UML. Za izradu igre Sudoku korištena su dva python modula: Tkinter i NumPy. Korisnik će unositi svoje odgovore na platno (Canvas – atribut Tkinter-a) te će se igra svaki put ponovno učitati sa unesenim brojem, sve dok korisnik ne završi slagalicu. Generiranje ploče i računanja s matricama napravljena su uz pomoć bibliotekom NumPy.In this paper, the famous Sudoku game is formed. The game is made with Python programming language and it consists of 2 programs. The first is generator.py that wil generate the puzzle, and the second is sudoku.py that triggers the game.Visualization and documentation of design process is made with UML (Unified Modeling Language) language in the form of program support, more precisely, the White Star UML tool. Sudoku game is created with two Python modules: Tkinter and Numpy. The user will sumbit their replies to canvas – Tkinter attribute, and the game will reload new board with that answer, until the puzzle is solved. Generating boards and computing with matrices was created with the help of the NumPy library

    Similar works

    Full text

    thumbnail-image