04-21-2004, 02:31 AM
now where did I put it... hmm... ah there it is
http://mywebpages.comcast.net/whitetiger...MEMORY.TXT
http://mywebpages.comcast.net/whitetiger...MEMORY.TXT
Memory game
|
04-21-2004, 02:31 AM
now where did I put it... hmm... ah there it is
http://mywebpages.comcast.net/whitetiger...MEMORY.TXT
04-21-2004, 03:23 AM
After this line from your code:
[syntax="qbasic"] IF memory$(x, y) = memory$(unhidex, unhidey) THEN[/syntax] You're changing a certain symbol. And there are plenty more lines like it. Now, you don't have to for such a small game as what you posted, but it's probably better in a larger game that a sub is used to replace lines like: [syntax="qbasic"] memory$(x, y) = " " memory$(unhidex, unhidey) = " " score = score + 1[/syntax] With a sub. Cos what happens if you want to give more points for certain symbols? What happens if you decide not to change them to spaces? It's just easier with a sub
04-21-2004, 03:29 AM
eh mine works =P
04-21-2004, 04:16 AM
Like I said: for a small program your way is fine
|
« Next Oldest | Next Newest »
|