Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Sudoku Generator in VB6

Sudoku Generator in VB6

Scheduled Pinned Locked Moved Visual Basic
helparchitecturetutorial
10 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Solid Snake
    wrote on last edited by
    #1

    Hello everyone. I am trying to create a simple sudoku generator. I have decided to use textfields. so far i have made the generation code but what i get stuck on is how to get spaces (blanks) and how to get the solution matrix so that the numbers cant be the same in horizontal and vertical rows and the 3x3 boxes. i am using really simple code because i am still leaning the program but i am making this as a school project i would be really glad if i got some help in this ~Solid Snake~

    C C 2 Replies Last reply
    0
    • S Solid Snake

      Hello everyone. I am trying to create a simple sudoku generator. I have decided to use textfields. so far i have made the generation code but what i get stuck on is how to get spaces (blanks) and how to get the solution matrix so that the numbers cant be the same in horizontal and vertical rows and the 3x3 boxes. i am using really simple code because i am still leaning the program but i am making this as a school project i would be really glad if i got some help in this ~Solid Snake~

      C Offline
      C Offline
      Chandana Subasinghe
      wrote on last edited by
      #2

      Use arrays to manipulate matrix.

      S 1 Reply Last reply
      0
      • C Chandana Subasinghe

        Use arrays to manipulate matrix.

        S Offline
        S Offline
        Solid Snake
        wrote on last edited by
        #3

        please mail a more detailed explenation of how to set up arrays and other useful tips

        C 1 Reply Last reply
        0
        • S Solid Snake

          please mail a more detailed explenation of how to set up arrays and other useful tips

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          google is a good choice here. In fact, if you need to know how to create an array, you really should be buying a book. Christian Graus - Microsoft MVP - C++

          S 1 Reply Last reply
          0
          • S Solid Snake

            Hello everyone. I am trying to create a simple sudoku generator. I have decided to use textfields. so far i have made the generation code but what i get stuck on is how to get spaces (blanks) and how to get the solution matrix so that the numbers cant be the same in horizontal and vertical rows and the 3x3 boxes. i am using really simple code because i am still leaning the program but i am making this as a school project i would be really glad if i got some help in this ~Solid Snake~

            C Offline
            C Offline
            Chatura Dilan
            wrote on last edited by
            #5

            Creating a Sudoku generator is OK, and it is a great thing, but do not try to solve them by using computers, use your brain. Chatura from Pearl of the Indian Ocean.

            S S 2 Replies Last reply
            0
            • C Chatura Dilan

              Creating a Sudoku generator is OK, and it is a great thing, but do not try to solve them by using computers, use your brain. Chatura from Pearl of the Indian Ocean.

              S Offline
              S Offline
              Solid Snake
              wrote on last edited by
              #6

              i dislike solving programs and i solve sudokus by hand frequently.

              C 1 Reply Last reply
              0
              • C Christian Graus

                google is a good choice here. In fact, if you need to know how to create an array, you really should be buying a book. Christian Graus - Microsoft MVP - C++

                S Offline
                S Offline
                Solid Snake
                wrote on last edited by
                #7

                well i actually have a beginners book that wont give me that kind of info :(

                C 1 Reply Last reply
                0
                • S Solid Snake

                  i dislike solving programs and i solve sudokus by hand frequently.

                  C Offline
                  C Offline
                  Chatura Dilan
                  wrote on last edited by
                  #8

                  :) Chatura from Pearl of the Indian Ocean.

                  1 Reply Last reply
                  0
                  • C Chatura Dilan

                    Creating a Sudoku generator is OK, and it is a great thing, but do not try to solve them by using computers, use your brain. Chatura from Pearl of the Indian Ocean.

                    S Offline
                    S Offline
                    Steve Pullan
                    wrote on last edited by
                    #9

                    I actually find the challenge of designing algorithms to solve such puzzles is much greater than doing it by hand, especially if you apply AI concepts and use tools such as Prolog. ...Steve 1. quod erat demonstrandum 2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once :-)

                    1 Reply Last reply
                    0
                    • S Solid Snake

                      well i actually have a beginners book that wont give me that kind of info :(

                      C Offline
                      C Offline
                      Christian Graus
                      wrote on last edited by
                      #10

                      *grin* then you need a better book. msdn.microsoft.com is also full of info. Christian Graus - Microsoft MVP - C++

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups