Jump to content
  • entries
    4,959
  • comments
    2,719
  • views
    1,810,301

programming for the Virtual Boy sucks


atari2600land

443 views

I spent about four hours sitting and programming a stupid Virtual Boy sudoku program. After that, I tried a different approach: I assigned each square in the square a number. So now there's 81 numbers, each with their own number. And yes, the code is as huge as you might expect for there being 81 variables, all basically sharing the same code. Unless there's a way to program this same thing for different variables, I'm pretty much stuck with it right now. The engine is pretty much complete right now. Now I have to figure out how to make different, unchangable numbers pop up at the start. And that sounds like what I did last night and tonight was easy. Anyway, with this setup, the controls are as follows : left dpad - move around the grid. right up/down - change numbers. Since there are no numbers in at the start (and, as such, no solving detection), you can make every number different and it won't do anything. I just spent the last half-hour trying to figure out why the numbers don't loop (after 9, go to 1 or before 1 go to 9). But they do now. And, if you look at my code, don't think I typed ALL that in: Copying, pasting, and replacing are my friends now. Whether I plan to continue this is up in the air, I just thought I'd show you this because I found it interesting.

1 Comment


Recommended Comments

Find a good book on "C" and look up about how to create and use "arrays" and "for" loops. That'll save you a ton of code and headaches.

Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...