Python Forum
project kudoSudoku follows SUDO project
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
project kudoSudoku follows SUDO project
#6
I must add a very important thing. When you see on the prompt command " Hit ENTER to continue": remove tkinter figure clicking on its cross(corner up and right). So, I will rather modify "Hit ENTER to continue" to "Remove first tkinter figure and then click ENTER to continue(on the Command Prompt)"
 def printSUDOKU(self, matrix):
        pprint(matrix)
        for i in range(9):
            for j in range(9):
                if matrix[i][j]==' ':
                    matrix[i][j]=0
                else:
                    matrix[i][j]=int(matrix[i][j])

        puzzle=matrix
        print("puzzle")
        pprint(puzzle)
        with open('numbers.csv', 'w', newline='') as csvfile:
            numwriter=csv.writer(csvfile, delimiter=' ', quotechar='|', quoting=csv.QUOTE_MINIMAL)
            numwriter.writerow(puzzle)

        input("Hit ENTER to continue")

    def printALL(self):
        print('Sudoku:')
I think this project can be improved, because there are people much stronger than me on python language.
Reply


Messages In This Thread
project kudoSudoku follows SUDO project - by sylas - Apr-30-2018, 09:30 PM
RE: project kudoSudoku follows SUDO project - by sylas - May-08-2018, 08:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Modify project (so that it uses db, QSqlRelationalTableModel etc) panoss 0 1,345 Jan-31-2022, 10:14 PM
Last Post: panoss
Question GUI for simple python project Qwertz 4 133,619 Jan-26-2022, 10:29 AM
Last Post: menator01
  [Tkinter] remove file from current project rwahdan 2 2,383 Jul-25-2021, 09:14 AM
Last Post: Larz60+
  [Tkinter] Finishing GUI calculator project benybeastboy 3 3,211 Feb-26-2021, 04:54 PM
Last Post: kkaur
  python file(.py) not working with my tkinter project DeanAseraf1 9 7,448 Mar-22-2020, 10:58 PM
Last Post: ifigazsi
  Problem In calling a Function from another python file of project vinod2810 7 5,578 Oct-05-2019, 01:09 PM
Last Post: ichabod801
  advice getting started with GUI project loulou 1 2,014 Jun-18-2019, 01:20 PM
Last Post: Denni
  Linear algebra semester project frequency 3 3,183 Dec-02-2018, 07:12 AM
Last Post: buran
  [Tkinter] TkInter Setting Out Project MTom5 1 2,275 Aug-14-2018, 04:08 PM
Last Post: Larz60+
  Continue SUDO project sylas 6 4,122 Apr-29-2018, 04:43 PM
Last Post: sylas

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020