# Su Doku Puzzle

• Re: Su Doku Puzzle

hi Andy,

i think yr game is great, but a tad too difficult
especially at the last empty slot

maybe you can add on a lifeline or two, like reveal one slot to make it easier but some points will be deducted....

he he, guess i'm too impatient for this game

Cheers
___________
Xlite :sheep:
[st]All you need to learn VBA is an internet connection and Ozgrid.com[/st]

• Re: Su Doku Puzzle

Hi xlite,

Here's a quick fix for the less patient game players :lol:
It will create puzzles with fewer empty slots.

Code
``````' In the routine m_GetStartingGrid

' current values
'        intReveal = m_GetRandom(2, 5)       ' number of value to reveal within subgrid

' new values
intReveal = m_GetRandom(5, 8)       ' number of value to reveal within subgrid``````

[h4]Cheers
Andy
[/h4]

• Re: Su Doku Puzzle

cool :rock:

thax Andy :thanx:

Cheers
___________
Xlite :sheep:
[st]All you need to learn VBA is an internet connection and Ozgrid.com[/st]

• Re: Su Doku Puzzle

Hi Andy,

This is great.

I haven't fully digested all of the code yet but it looks to be up to your usual (high) standard.

Good job. :thumbcoo:

• Re: Su Doku Puzzle

Thanks Richie.

One thing that has been pointed out to me is,
When generating random puzzles there maybe more than 1 solution :yikes:

Obviously this is not correct for a pure logic puzzle. Sure you may have to guess when a particular cell could hold more than 1 value but the wrong guess should result in a grid that is unsolvable.
Currently cells can be swapped. The solution is still a valid complete solution BUT it may not tally with the solution the game is checking against.

I will have to do some more thinking on how to determine a single solution starting point without giving the solution away to easily!

[h4]Cheers
Andy
[/h4]

• Re: Su Doku Puzzle

Andy

This is excellent.

I'll never get any work done now.

I looked at the change for altering the difficulty level but couldn't find a line with the original values quoted. Have things moved on since then?

I think a good tweek would be to alluw the user to select a difficulty level when generating a new grid.

David

## Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!