|
-
Tips for Sudoku Flash
Hi everyone.
I have to make a Sudoku game in Flash, with action script, but I'm struggling a lot. With what we have been taught so far I just can't see a way to make one and its impossible to find any tutorials or open code to study on the net.
My main problem is that I don't know how I can organise it so that numbers can only be placed within a grid and how to then check said grid. Is there some kind of grid tool or what?
Any help, tips are greatly appreciated, as is your time for reading this post.
Thanks.
-
A grid you say , that would require a tilebased system. Look up on google "Tonypa", he's a FK mod in the Game section
He wrote tutorials on how to use a tile based system , good luck
-
Ill give that a search.
I may be wrong though, I'm just assuming it requires a grid because thats what Sudoku looks like, I've never actually played a game of it before.
-
FlashCLUE.com
I'm not sure... u r asking abt following basics?
code: i=1;
for( var x=0 ; x<9; x++ )
for( var y=0 ; y<9; y++ ){
this.createTextField('t'+(++i), i, x*20, y*30, 20,20)
this['t'+i].text = random(10);
}
-
Basically, from what I understand of the game (I have to make a basic 9x9 game), each row and column must contain 1-9 and each 3x3 group in the 9x9 grid must also contain 1-9 only once.
My problem is basically, how do I make it know whats there? How do I make it appear in that 9x9 grid and check it. I don't even know where to really start which is why I'm asking for some tips.
EDIT:
I don't have to make a Sudoku solver or generator, just make it obey the rules of Sudoku.
-
C'mon guys I really need help here.
-
Senior Member
it really isn't an easy question to answer. you might be better asking in the games forum.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|