• Simple Sudoku Game in Java
    17 replies, posted
[url]http://jotheshmo.webs.com/[/url] I didn't feel like hard-coding any puzzles in, or making a puzzle generator, so you'll have to put the puzzle in yourself. Made this for my java class. No post icon that fits this topic... And yes, it's ugly. I started java in early august, and this was my latest project.
So...does it do anything?
[QUOTE=cas97;18517312]So...does it do anything?[/QUOTE] Click in the box and enter in the puzzle. I would say that you need a generator. All it does right now is see if the same number is in the row box or square. That's not much.
no... You have to type in all the numbers of your puzzle, then click lock. Then you can type in numbers that will not tell you if they are wrong or not. At the end, you can click the check button, and it will tell you if its solved or not. Did you read the help menu?
Sweet, we were just learning about multi-dimensional arrays in my java class. I haven't gotten to GUI and web based stuff yet, but I'm enjoying it so far.
Sorry, I managed to miss the scroll bar.
me too agent :downs:
Looks like it freezes or just blocks clicking for a second or two after you enter a number.
Probably inefficient check code :P
looks crap. no offence
[QUOTE=Ortzinator;18521267]Looks like it freezes or just blocks clicking for a second or two after you enter a number.[/QUOTE] He's probably doing a long calculation on the GUI thread. I remember my first time doing that. @OP a really simple way to fix that would be to use javax.swing.SwingWorker Or if you want to do it the hard way, use the Thread class.
Actually, it works fine if you use the arrow keys to navigate.
First of all it's a tad big, I have to go fullscreen mode to see all the boxes at once. Also for some reason I can't type into any of the boxes, selecting + pressing a number does nothing. Also arrow keys to navigate does nothing either. I'm on Ubuntu 9.10 and I've just installed the java plugins (it asked me to install openJDK and icedtea when I loaded the page).
It doesn't lag after clicking for me, maybe that's why I missed it. I'll try running it on a slow computer or something to see what I can do, because I'm only doing a few small loops every click click, no calculations. I made it on a mac (ugh) and haven't tested it yet on windows or linux.... Because it's a school project :P And it's only about 680x700, you really need to go fullscreen? Edit: Yeah, it works perfectly for me, no lag or anything. I'll look at it further.
[QUOTE=Jo The Shmo;18532382] And it's only about 680x700, you really need to go fullscreen? [/QUOTE] [img]http://img130.imageshack.us/img130/7119/screenshotfq.png[/img]
I hope that's a netbook. Ironically, that screenshot fits in my browser window. Still too big though.
[QUOTE=Ortzinator;18535359]I hope that's a netbook. Ironically, that screenshot fits in my browser window. Still too big though.[/QUOTE] Laptop running at 1280x800
[QUOTE=Mattz333;18534617][/QUOTE] Rated heart for OpenSolaris. :3:
Sorry, you need to Log In to post a reply to this thread.