# Creating a soduko-game

**URL:** <https://forum.kirupa.com/t/creating-a-soduko-game/165887>\
**Category:** flash\
**Created:** [October 14, 2005, 8:07pm UTC](https://forum.kirupa.com/t/creating-a-soduko-game/165887 "2005-10-14T20:07:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rave\_t](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@rave\_t](https://forum.kirupa.com/u/rave_t)\
**Post date:** [October 14, 2005, 8:07pm UTC](https://forum.kirupa.com/t/creating-a-soduko-game/165887/1 "2005-10-14T20:07:20Z")

</div>

Hi ! Im trying to create a Soduko-game.  
The graphics aint the problem… 😉

The problem is the code, the functionallity to set up a soduko board.

I’ve tried many things but i cant get a simple solution…

Soduko is a game with 9\*9 squares. In each row the numbers 1-9 should be entered and may only appear once in each row. The same for the columns.

Also in 3\*3 squares (9 of them…) the numbers 1-9 should appear once…

How can i do this programatically? Ive tried to randomize numbers in a matrix 9_9 and while the number is randomized, check if it i exists in the row, col or 3_3 square, if it does, it should be changed…But this wont work…

Any ideas?
