Closed Thread
Results 1 to 8 of 8

Thread: An abandoned project

  1. #1
    Hot_Milo23's Avatar
    Hot_Milo23 is offline Programmer
    Join Date
    Jun 2009
    Location
    Western Australia
    Posts
    120
    Rep Power
    11

    An abandoned project

    Posted via CodeCall Mobile
    hey all, i was recently reminiscing on some abandoned python projects i mite have another crack at. I decided on the idea of a program to solve the wonderfully addictive sudoko puzzles. At the time, i figured: i solve them by using simple algorithms over and over, so a program should be able to emulate this.

    i ran into problems pretty quickly, dnt remember specifically, ill have a better look later.
    but basicly i was wondering if anyone knows of or has tried this themselves, especially in python? Im not looking for answers just yet, just confirmation.

    thx.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Apr 2009
    Location
    Uppsala, Sweden
    Posts
    9,547
    Blog Entries
    5
    Rep Power
    98

    Re: An abandoned project

    I haveŽdone this before but not in Python (but it would be easy to redone this in Python) however, since I'm not a pro on suduko I didn't know how to solve the most dificult sudukos myself. This resulted in that my program couldn't solve the most dificulty ones either. I had a book with sudoko puzzles and my program could complete the diffiluty 1, 2 and 3 but not number 4.

  4. #3
    manux's Avatar
    manux is offline Programming Professional
    Join Date
    Oct 2008
    Posts
    234
    Blog Entries
    1
    Rep Power
    14

    Re: An abandoned project

    At that point the fastest solution is recursive brute-force . But yeah, Python can easily deal with sudokus, and even write a pretty gui in no time.

  5. #4
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    Re: An abandoned project

    Hm do you think a backtracking algorithm would work? It wouldn't be a brute force algorithm. I don't know much about sudoku but wouldn't you try to print a number if the number is valid, and then move to the next square. If you get to the end of the row, without placing a number, then move back and try a new number?

    I haven't tried it but it wouldn't be that hard once you get the algorithm. Any language can do it.

  6. #5
    Hot_Milo23's Avatar
    Hot_Milo23 is offline Programmer
    Join Date
    Jun 2009
    Location
    Western Australia
    Posts
    120
    Rep Power
    11

    Re: An abandoned project

    this should probably go in a new thread, but what would u suggest for "making a pretty gui in no time"?

  7. #6
    manux's Avatar
    manux is offline Programming Professional
    Join Date
    Oct 2008
    Posts
    234
    Blog Entries
    1
    Rep Power
    14

    Re: An abandoned project

    making a cute window with Tkinter and a Canvas

  8. #7
    Join Date
    Jul 2006
    Posts
    16,489
    Blog Entries
    75
    Rep Power
    143

    Re: An abandoned project

    There's actually a book on the market for how to program a sudoku solver in VB. You could easily translate the algorithms into python.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  9. #8
    Hot_Milo23's Avatar
    Hot_Milo23 is offline Programmer
    Join Date
    Jun 2009
    Location
    Western Australia
    Posts
    120
    Rep Power
    11

    Re: An abandoned project

    Posted via CodeCall Mobile
    personally, i would rather figure it out myself, then maybe look at other peoples ways.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. any One can help me with this Project ?
    By Mrs in forum Java Help
    Replies: 6
    Last Post: 06-10-2011, 10:00 AM
  2. Wanted: Paid Project - Free Marketing Project
    By oct2010 in forum Request Services
    Replies: 4
    Last Post: 10-29-2010, 12:47 AM
  3. Project
    By Apprentice123 in forum C and C++
    Replies: 5
    Last Post: 05-18-2009, 10:29 PM
  4. Community Project! - Recent project gone sour
    By Crane in forum C# Programming
    Replies: 5
    Last Post: 09-09-2006, 12:13 PM
  5. C# Project built in Express Vs Project build in Pro
    By Crane in forum C# Programming
    Replies: 1
    Last Post: 07-02-2006, 07:38 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts