1101 1010 1111 1011 -- 0110 0000 1001 0101
Dec. 8th, 2002 01:00 amJust a quick update before I go to bed-
Finished my Assembly Project tonight. ^_^
It was grand. It's nothing spectacular, a little game of Stars. Since it seems not everyone knows what it is, I'll explain.
You have a board of stars. Some are on, some are off. You can only pick stars that are off, and whenever you turn a star on, it toggles all the stars around it. You win when all of the stars are on. My game has 9 stars, but it could be 'easily' adapted to any Square Number.
123
456
789
The idea was on of three the Proff gave us (Tic-Tac-Toe and some random colors thing being the other two). I had an idea as soon as I understood the project. It took me a day to figure out the codes, three hours to write it, and 5 minutes to debug (I had a really solid idea before I even got to debug, and it was just some stupid syntax errors I made). I really had a lot of fun writing it (for the day or two it took me...).
For those who care, I simply represented the board with a 9-bit number. It gets randomy generated choosing from 1 to 511 (000000000 to 111111110). It's simple to tell if a star (or bit) is on or not, and they you just use an XOR command to flip the correct bits. It took me less than 200 lines to code (which is rather a shame, I think - the guys doing Tic-Tac-Toe were in the 800-1000 range).
Anyways, I kinda like it, and if anyone wants, I put it on my site for anyone who wants to check it out. It's simple, yes, but I'm proud of it. ^_^ You can get it Here (just 28K). Josh told me it's a bit easy at 3x3, so I'm thinking of making a version that's 4x4 or 5x5. I start running into problems with the code if I need to deal with more than 32 stars. Maybe I'll make an 8x4 version...
Other than that, I managed tosucker talk Tatsu into another Game tonight. It was a better one than those which we played last night, but I think it'd been better if there'd been more creature interaction. I've gotta stop winning, though, for fear of losing an opponent.
Anyways, I'm off.
As An Aside: Don't 'click' that link, by the by. As Angelfire doesn't allow remote hosting, you'll simply see a page that says as much. Bastards. But, here's what to do - just right-click and choose 'Save Target As' and you'll download the file. It's quick, it's easy, and it can be yours right now for just $2.99 (plus shipping, liscence and taggine fees. Void where prohibited and Montana. See your local Dodge dealer for details.).
Finished my Assembly Project tonight. ^_^
It was grand. It's nothing spectacular, a little game of Stars. Since it seems not everyone knows what it is, I'll explain.
You have a board of stars. Some are on, some are off. You can only pick stars that are off, and whenever you turn a star on, it toggles all the stars around it. You win when all of the stars are on. My game has 9 stars, but it could be 'easily' adapted to any Square Number.
123
456
789
The idea was on of three the Proff gave us (Tic-Tac-Toe and some random colors thing being the other two). I had an idea as soon as I understood the project. It took me a day to figure out the codes, three hours to write it, and 5 minutes to debug (I had a really solid idea before I even got to debug, and it was just some stupid syntax errors I made). I really had a lot of fun writing it (for the day or two it took me...).
For those who care, I simply represented the board with a 9-bit number. It gets randomy generated choosing from 1 to 511 (000000000 to 111111110). It's simple to tell if a star (or bit) is on or not, and they you just use an XOR command to flip the correct bits. It took me less than 200 lines to code (which is rather a shame, I think - the guys doing Tic-Tac-Toe were in the 800-1000 range).
Anyways, I kinda like it, and if anyone wants, I put it on my site for anyone who wants to check it out. It's simple, yes, but I'm proud of it. ^_^ You can get it Here (just 28K). Josh told me it's a bit easy at 3x3, so I'm thinking of making a version that's 4x4 or 5x5. I start running into problems with the code if I need to deal with more than 32 stars. Maybe I'll make an 8x4 version...
Other than that, I managed to
Anyways, I'm off.
As An Aside: Don't 'click' that link, by the by. As Angelfire doesn't allow remote hosting, you'll simply see a page that says as much. Bastards. But, here's what to do - just right-click and choose 'Save Target As' and you'll download the file. It's quick, it's easy, and it can be yours right now for just $2.99 (plus shipping, liscence and taggine fees. Void where prohibited and Montana. See your local Dodge dealer for details.).