Sudoku Programmers Forum Index

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log inLog in          Games  Calendar

Log in to check your private messagesLog in to check your private messages   

An simple way to genarate Sudoku with a pattern

 
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Setting sudoku
View previous topic :: View next topic  
Author Message
Thunderwave

Joined: 03 Jun 2007
Posts: 6
:

Items
PostPosted: Tue Jun 05, 2007 12:34 am    Post subject: An simple way to genarate Sudoku with a pattern Reply with quote

So, this may or may not have been discussed but I browsed a lot and have not found anything too similar. I could be wrong.

I just throw in a bunch of numbers and using my program, I highlight errors and fix them til the puzzle is complete, I than remove numbers to try to leave a pattern.

When I find it leads to an unsolvable puzzle I go back and find a new number to delete. I keep deleting until it creates a pattern and has only one solution.

So, here's one I came up with.

Code:
+-------+-------+-------+
| 4 . . | 1 . 5 | . . 3 |
| . 9 . | . 7 . | . 4 . |
| . . 2 | . . . | 1 . . |
+-------+-------+-------+
| 1 . . | 8 . 9 | . . 4 |
| . 5 . | . . . | . 7 . |
| 3 . . | 7 . 4 | . . 1 |
+-------+-------+-------+
| . . . | 2 . 3 | . . . |
| . 1 . | . 6 . | . 3 . |
| 2 . . | 5 . 7 | . . 8 |
+-------+-------+-------+
Back to top
View user's profile Send private message
wapati

Joined: 12 Jun 2007
Posts: 622
:
Location: Canada

Items
PostPosted: Wed Aug 01, 2007 4:37 pm    Post subject: Reply with quote

You didn't ask any questions so it is hard to reply. Smile

Your puzzle is pretty difficult but has no symmetry.

Here is a little easier symmetric version.
Code:

4..1.5..3
.9..7..4.
..2...1..
1..8.9..2
....1....
3..7.4..1
..8...2..
.1..6..3.
2..5.7..8


There are two ways to create sudoku puzzles and yours is one.
You take a complete grid and remove numbers until it cannot be solved, then put the last one back in. (Sometimes last two, for symmetry.)

The other way is to take a blank grid and add clues until the puzzle can be solved.
Back to top
View user's profile Send private message
Thunderwave

Joined: 03 Jun 2007
Posts: 6
:

Items
PostPosted: Wed Aug 01, 2007 5:45 pm    Post subject: Reply with quote

So my question is Very Happy

Why does there have to be full symmetry?

I think your version of that puzzle is good and fancy looking, just wandering if there are puzzles out there that maybe have picturesque qualities. Like animals, figures, etc.

Code:
+-------+-------+-------+
| . 4 . | . . . | . 5 . |
| 9 . . | 2 . 4 | . . 8 |
| . . 6 | . . . | 4 . . |
+-------+-------+-------+
| . 7 . | 4 . 9 | . 1 . |
| 1 . 4 | . . . | 9 . 6 |
| . 6 . | 3 . 1 | . 7 . |
+-------+-------+-------+
| . . 7 | 1 . 2 | 6 . . |
| . . . | 8 . 6 | . . . |
| 6 . 8 | 9 4 7 | 1 . 3 |
+-------+-------+-------+
Back to top
View user's profile Send private message
gsf

Joined: 18 Aug 2005
Posts: 411
:
Location: NJ USA

Items
PostPosted: Wed Aug 01, 2007 6:01 pm    Post subject: Reply with quote

wapati wrote:

Your puzzle is pretty difficult but has no symmetry.

it has vertical symmetry
Back to top
View user's profile Send private message Visit poster's website
north55

Joined: 02 Dec 2006
Posts: 43
:

Items
PostPosted: Wed Aug 01, 2007 10:35 pm    Post subject: Reply with quote

gsf wrote:
wapati wrote:

Your puzzle is pretty difficult but has no symmetry.

it has vertical symmetry


Oops, my bad... Embarassed

Thanks gsf, sorry Thunderwave, you do have symmetry.

There are many forms of symmetry and while 180 degree may be most popular all symmetry is respected.
Back to top
View user's profile Send private message
Thunderwave

Joined: 03 Jun 2007
Posts: 6
:

Items
PostPosted: Wed Aug 01, 2007 10:51 pm    Post subject: Reply with quote

No problem north55/?Wapati?

That leaves a lot more room for creativity.
Back to top
View user's profile Send private message
wapati

Joined: 12 Jun 2007
Posts: 622
:
Location: Canada

Items
PostPosted: Thu Aug 02, 2007 1:31 am    Post subject: Reply with quote

Thunderwave wrote:
No problem north55/?Wapati?



LOL. My brother used my computer and left the logon.

He has been at this site much longer than I, although he posts little.


I answered not knowing that it was under his name.

This is me, wapati.

Laughing
Back to top
View user's profile Send private message
m_b_metcalf

Joined: 13 Mar 2006
Posts: 210
:
Location: Berlin

Items
PostPosted: Thu Aug 02, 2007 7:52 am    Post subject: Reply with quote

Thunderwave wrote:
..., just wandering if there are puzzles out there that maybe have picturesque qualities. Like animals, figures, etc.



Very many; see, for instance, http://www.sudoku.com/boards/viewtopic.php?t=4147.

Regars,

Mike Metcalf
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Sudoku Programmers Forum Index -> Setting sudoku All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Sudoku Programmers topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group

Igloo Theme Version 1.0 :: Created By: Andrew Charron