OZONE Asylum
Forums
Server-Side Scripting - Oh my!
Sudoku WarJ style
This page's ID:
33127
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Got to thinking about sudoku some months ago. Not creating a playable puzzle, but just the solved soduku. There is something about chaos with constraints. Read how other people do it and it was all boring with no real insight. I started staring at sudoku puzzles looking for patterns. I finally found one that I hadn't read about. It is a bit complex. But then I reduced it by using order. Once I started with order, it became ridiculously easy to add some chaos. Start with perfect order. Seed the chaos just a tad with a very simple transform. Then, using a variation of the first transform, get crazy with the Cheese Whiz. I can create a base3 sudoku in approximately 0.02 seconds . Base8 takes, on average, 1.3 seconds. And base16 takes me just under 3 minutes. Here is a corner of the starting point for base8: [code] 00 01 02 03 04 05 06 07 38 39 3a 3b 3c 3d 3e 3f 08 09 0a 0b 0c 0d 0e 0f 00 01 02 03 04 05 06 07 10 11 12 13 14 15 16 17 08 09 0a 0b 0c 0d 0e 0f 18 19 1a 1b 1c 1d 1e 1f 10 11 12 13 14 15 16 17 20 21 22 23 24 25 26 27 18 19 1a 1b 1c 1d 1e 1f 28 29 2a 2b 2c 2d 2e 2f 20 21 22 23 24 25 26 27 30 31 32 33 34 35 36 37 28 29 2a 2b 2c 2d 2e 2f 38 39 3a 3b 3c 3d 3e 3f 30 31 32 33 34 35 36 37 07 00 01 02 03 04 05 06 3f 38 39 3a 3b 3c 3d 3e 0f 08 09 0a 0b 0c 0d 0e 07 00 01 02 03 04 05 06 17 10 11 12 13 14 15 16 0f 08 09 0a 0b 0c 0d 0e 1f 18 19 1a 1b 1c 1d 1e 17 10 11 12 13 14 15 16 27 20 21 22 23 24 25 26 1f 18 19 1a 1b 1c 1d 1e 2f 28 29 2a 2b 2c 2d 2e 27 20 21 22 23 24 25 26 37 30 31 32 33 34 35 36 2f 28 29 2a 2b 2c 2d 2e 3f 38 39 3a 3b 3c 3d 3e 37 30 31 32 33 34 35 36 [/code] Fairly easy to see the starting pattern, yes? Then, using two simple transforms, one to seed the other, I get this: [code] 20 2a 26 23 01 21 22 34 08 19 1e 2b 00 3e 2f 1f 0d 0c 2e 1b 08 29 0a 0f 04 27 22 13 1c 05 26 07 10 37 14 36 12 31 13 15 18 09 02 1b 0c 0d 06 2d 38 3d 39 0b 3f 3c 1a 18 14 11 15 03 17 16 10 32 02 3b 32 3e 04 05 24 1f 1a 3a 38 3f 35 3d 3c 25 2f 06 1e 27 2c 09 2b 07 30 01 21 36 24 23 2e 33 30 11 00 03 17 33 16 35 28 29 0e 0b 2c 1d 0a 0f 28 25 0e 19 3a 1d 1c 2d 20 31 2a 37 39 34 12 3b 13 24 01 02 1c 34 25 06 1f 10 39 12 3b 0a 31 1a 0c 0b 0d 3a 0f 28 09 1a 05 07 03 00 06 04 01 3e 33 22 11 2a 00 1b 35 16 0e 1e 29 08 09 15 1d 14 39 20 21 14 07 17 1d 3e 3f 18 16 1c 37 0c 25 2a 27 36 3f 30 03 04 3d 26 21 38 19 3c 1b 3a 35 22 2e 2d 2f 0a 29 08 2c 2b 13 20 23 27 26 24 11 02 23 18 15 12 32 10 37 31 2d 34 2f 2e 0f 30 0d 0b 19 1f 3c 1e 3b 38 05 0e 17 28 3d 32 33 2c 2b 36 [/code] In this example, I have not used any row or column swaps in either the cells or blocks. Not even a remap of values. At a glance, base8 isn't the greatest visual example because of the second nibble. You can see a bunch of leading 2's in a row, but only half of the 2's are significant, so to speak. Um, the range is 00-3f and the nibble on the left can be tricksy on the eyeballs. Know what I mean? That is straight-up WarJ style. Base16 sudoku. In under 3 minutes. Without any cheap tricks. Or back-tracking. Wicked easy. Kekeke. [small](Edited by [url=http://ozoneasylum.com/user/351]warjournal[/url] on 04-03-2016 21:10)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail