Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memory game
#11
now where did I put it... hmm... ah there it is
http://mywebpages.comcast.net/whitetiger...MEMORY.TXT
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#12
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 Wink
Reply
#13
eh mine works =P
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#14
Like I said: for a small program your way is fine Tongue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)