rakudave Posted February 27, 2006 Share Posted February 27, 2006 (edited) well, finally there's a AutoIt SuDoku programm. it took me ages to complete it and... HERE IT IS!!!it is also my school-project, which i have to hand in. if a get a bad mark, i wont be able to do the exams.so thisone needs to WORK. if it doesn't please tell me.Download & sourcetell me what u think... thanks...edit: new version online Edited March 7, 2006 by rakudave Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
XxXFaNtA Posted February 27, 2006 Share Posted February 27, 2006 (edited) sry...but somethink is wrong There can't be 2 equal numbers in the same squareEdit: Hm...i restarted it to check if this was only once...but now i got 3 equal numbers in the same squre Edited February 27, 2006 by XxXFaNtA /[center][/center] Link to comment Share on other sites More sharing options...
rambo3889 Posted February 27, 2006 Share Posted February 27, 2006 Sorry from me to dude this how it looks when i run your compiled My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
rakudave Posted February 27, 2006 Author Share Posted February 27, 2006 @rambo3889: i tested it on the pc of a friend and encountered the same prob. just recompile it and you should be fine... (i'll supply the _print.au3 if i'm at home again...) @XxXFaNtA: Sh**, looks like a serious prob... what did you do exactly? (to better understand what happened...) thx2both of u... Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
mikeytown2 Posted February 28, 2006 Share Posted February 28, 2006 (edited) Cool program! i get rambo3889's problem when i run the supplied exe, when i compile from source it looks like XxXFaNtA; only after i remove the _print stuff though. It also likes to solve the board, by its self, when you do a New. Don't know if thats whats supposed to happen. Help doesn't work (F1) Ctrl t gives me the same error Ctrl e should be a toggle (show/hide) Does Notes do anything? I've never played this game before, but there's my input. Edited February 28, 2006 by mikeytown2 Email: POP3 & SMTP using SSL/TLS (OpenSSL)Email: IMAPEmail: Base64 & SMTP login & Send email direct to MX Server (thanks blindwig)Win: Hook Registry ChangesWin: Read/Write to Alternate Data Streams (ini example)Utility: GPS Distance Calculations, Vincenty and Haversine formulas; angles and elevationUtility: Dell Laser Printer (3000-5100) - Print LoggerUtility: Reset Router when Wireless Link FailsUtility: ImageMagick Batch jpg ProcessorVideo HCenc Batch FrontendVideo: *DEAD* YouTube Video Encoder (avs/avi to flv)Software On CD's I Like<<back|track3 Ultimate Boot CD for Windows SpinRite Ubuntu ophcrack Link to comment Share on other sites More sharing options...
rambo3889 Posted February 28, 2006 Share Posted February 28, 2006 Okay My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
rakudave Posted February 28, 2006 Author Share Posted February 28, 2006 (edited) does any of you guys know why the compiled version doesn't look tha same on every pc??? i dont get it.but here's the _print.au3 u need to recompile it.the F1 help thing is not finished yet, that'll come l8er...about the "new" function: to make e new sudoku, you need a complete grid. i used the solver-engine also to create the grid (recycled it, so so speak...). that's why it "solves" the newones first.in the final version, this will be hidden, but i left it visible that one can see how it works.ctlr t should work, if not, try ctrl g... (?)in the "notes" boxes you can put in the opossible (remaining) numbers. so for example, you thing there might be a 3 or a 6 in the box above, you put "36".the "show eventualities" function does the same, so you don't have to do it (for lazy people...)thanks miketown2 for your comment!ah, and @XxXFaNtA: did you perhaps generate a new sudoku without having cleared the grid first? (ctrl del)regardsrakudave Edited February 28, 2006 by rakudave Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
rambo3889 Posted February 28, 2006 Share Posted February 28, 2006 Okay ill try when i get home My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
XxXFaNtA Posted February 28, 2006 Share Posted February 28, 2006 (edited) @rakudave: I think i just started a new game let me see... Edit: Now my SoDoKu looks like the one of Rambo3889 Edited February 28, 2006 by XxXFaNtA /[center][/center] Link to comment Share on other sites More sharing options...
rakudave Posted March 1, 2006 Author Share Posted March 1, 2006 yes, slowly i'm loosing my nerves... (not cuz of u...) if i change only one line in this damn script, the whole GUI gets messed up. WHY WHY WHY??? HHHEEELLLPPP!! :'-( Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
tonedeaf Posted March 1, 2006 Share Posted March 1, 2006 @rakudave,A very good attempt. I took a look at the code but was too lazy to follow it.The problem is, solving a SuDoku puzzle programatically is not easy. A link which discusses this: http://somethinkodd.com/oddthinking/?p=21Also check:http://blogs.msdn.com/robburke/archive/200.../06/500614.aspx Link to comment Share on other sites More sharing options...
rakudave Posted March 1, 2006 Author Share Posted March 1, 2006 thanks for the links! the solverengine works perfectly, it's just the gui that brings me to my knees... i worked for ages and suddenly it doesn't work at all... i don't get it... is it perhaps 'cause there are more than 900 lines of code? Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
Julian Posted March 1, 2006 Share Posted March 1, 2006 The problem is, solving a SuDoku puzzle programatically is not easy. A link which discusses this: http://somethinkodd.com/oddthinking/?p=21Just to clarify: In that link I claim that it is not easy to do without back-tracking. If you permit back-tracking, it is trivial. (One of these days, I will write a follow-up to this post clarifying a few of the other points.)Julian Link to comment Share on other sites More sharing options...
jvanegmond Posted March 1, 2006 Share Posted March 1, 2006 (edited) I wanted to make this too a few days ago just to show my classmates the sodoku puzzles are so damn simple even something as dumb as a computer can solve them. but i didn't do it eventually.. i didn't feel like making the GUI, that's kind of an odd reason so i think i'm still going to do it. I will use the backtracking-approach to this. I just figured.. it's going to be like, a full checker, which checks if every number filled in is still right. and something that's going to fill in numbers. and something that puts em together and can take steps forward and backwards as much as needed. Yea, that'll work. Edited March 1, 2006 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
Developers Jos Posted March 1, 2006 Developers Share Posted March 1, 2006 thanks for the links!the solverengine works perfectly, it's just the gui that brings me to my knees...i worked for ages and suddenly it doesn't work at all... i don't get it...is it perhaps 'cause there are more than 900 lines of code?Don't think so....Running it with autoit3, it seems to work fine.Compiling it gives this strange layout.Done some tests but haven't been able to determine what the reason is. Just commenting lines 26 & 27 (SplashImageOn ("splash",@scriptdir & "\splash.dat",500,300,-1,-1,1)) seems to fix the layout problem .... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
rakudave Posted March 1, 2006 Author Share Posted March 1, 2006 strange... i tried to run the same (messed up) GUI in the compatibility-mode win 2000 and it worked... -> ??? Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
pastl Posted March 3, 2006 Share Posted March 3, 2006 Hi rakudave, i have no problem with the GUI, but the same problems like XxxFanta when starting a new game: Link to comment Share on other sites More sharing options...
jvanegmond Posted March 3, 2006 Share Posted March 3, 2006 I found a little error in line 262If stringreplace($grid[$x][$z],$gridbackup,"") > "" then$grid[$x][$z] = stringreplace($grid[$x][$z],$gridbackup,"")Hope this helps, i'm currently doing the same project and was looking at yours as an example github.com/jvanegmond Link to comment Share on other sites More sharing options...
rakudave Posted March 3, 2006 Author Share Posted March 3, 2006 @Manadar: thx, i'll fix that... and show me yours when it's finished... @pastl: strange... anyway, i'm working on a newer version, should work then... Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
rakudave Posted March 6, 2006 Author Share Posted March 6, 2006 ok, i did a new, (i hope) better & working version.i had problems compiling it with the latest beta, but with the 3.1 version it works... (wtf)http://www.gymmuenchenstein.ch/rakudave/newsudoku.zip Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now