A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Tips for Sudoku Flash

Hybrid View

  1. #1
    Junior Member
    Join Date
    Nov 2005
    Posts
    8

    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.

  2. #2
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167
    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

  3. #3
    Junior Member
    Join Date
    Nov 2005
    Posts
    8
    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.

  4. #4
    FlashCLUE.com Wizzz's Avatar
    Join Date
    Nov 2005
    Location
    Warsaw Poland
    Posts
    451
    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);
    }


  5. #5
    Junior Member
    Join Date
    Nov 2005
    Posts
    8
    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.

  6. #6
    Junior Member
    Join Date
    Nov 2005
    Posts
    8
    C'mon guys I really need help here.

  7. #7
    Senior Member onine's Avatar
    Join Date
    Mar 2005
    Posts
    626
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center