Author Topic: Simon Game  (Read 6924 times)

0 Members and 1 Guest are viewing this topic.

Offline Eniripsa96

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +3/-0
    • View Profile
Simon Game
« on: December 22, 2009, 09:59:00 pm »
I've been working on a simon game for a bit now, I've added the following features:
   ~ Customizable Range of numbers that show up
   ~ Automated High Score list
   ~ Backward Mode (You have to enter in the number sequence backwards)
   ~ Entry modes of the numbers all together or seperately
I plan on adding more but for now, enjoy what I have so far. :P

Download it here: http://www.sendspace.com/file/m1ohog

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Simon Game
« Reply #1 on: December 22, 2009, 10:03:05 pm »
hmm, what exactly do you mean by simon game? like Simon says?
you know you can attach the files here, so we don't have to go to those annoying download site.
I'll take a look and let you know what I think.
/e

Offline JCW

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +3/-1
  • Atmospheric/Intelligent Junglist
    • View Profile
Re: Simon Game
« Reply #2 on: December 22, 2009, 10:03:21 pm »
Welcome. :)
Former Administrator of TIMGUL (the international music generator users lounge)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Simon Game
« Reply #3 on: December 22, 2009, 10:13:14 pm »
oh yeah :P welcome to the forum

so when I tried playing it, I like the pic you made btw, but I have a few issues, when I tried to set the range to 4 on the options menu it gave me a invalid dim error that pointed to this line
Code: [Select]
4->LOPTN(2)which was under Lbl R4
now I also have an issue with how unoptimized this code is, so just to help you along, extra line breaks are a no no....and you can leave out the ending brackets on anything but a for loop, as well as the ending quotes. also try to stay away from labels, instead create your program flow with repeats, whiles, for, and if statements, it works much better.
from the looks of your code you are newer to TI-BASIC, so if you have any questions on how to optimize code/how to get things to work, don't hesitate to ask. Hopefully we can help you learn how to code ti-basic at par with the masters :P
also when I tried to run the game as normal it wouldn't run at all, gave me a error undefined. an easy way to fix this is to add this piece of code to the very start
Code: [Select]
setupeditor OPTN
3->dim(LOPTN
this will also fix the dim errors
here is a good reference for how to code in BASIC TI BASIC Developer
« Last Edit: December 22, 2009, 10:32:07 pm by Eeems »
/e

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Simon Game
« Reply #4 on: December 22, 2009, 10:23:27 pm »
Hi, welcome here!
As for your game, I'll check it out when I have time. (Most likely tomorrow) :)
« Last Edit: December 22, 2009, 10:23:44 pm by ztrumpet »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Simon Game
« Reply #5 on: December 22, 2009, 10:55:24 pm »
Hi and welcome!  Eeems pretty much hit it on the head, although i personally like line breaks because they make code much more readable (for me anyway) and only cost a byte.  And again, just to reiterate, Labels and gotos are not something to get used to, although they are attractive to beginners :).  But overall, very nice game!  I especially like the backward list feature ;D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Simon Game
« Reply #6 on: December 23, 2009, 02:22:46 am »
mhmm interesting, I should check out

Welcome here too btw :)
you know you can attach the files here
Not until he reaches 5 posts, same for sending PMs.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Simon Game
« Reply #7 on: December 23, 2009, 12:01:01 pm »
H ok lol, my bad. Well five posts rank up fast.
/e

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Simon Game
« Reply #8 on: December 23, 2009, 03:53:31 pm »
Can it be uploaded here in a zip by Eeems or DJ?  Oh, and when it's uploaded for those who use Wabbit Emulator can it please not be a group?  (Note: I agree with you for uploading it as a group, it's just that I like to test files out on Wabbit first.)
:)

I can't wait to try it. ;D
« Last Edit: December 23, 2009, 03:55:11 pm by ztrumpet »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Simon Game
« Reply #9 on: December 23, 2009, 04:27:00 pm »
actually with this one it's ok to extract it from the group and then put it on Wabbit..I could upload it I guess
/e

Offline Eniripsa96

  • LV2 Member (Next: 40)
  • **
  • Posts: 28
  • Rating: +3/-0
    • View Profile
Re: Simon Game
« Reply #10 on: December 24, 2009, 12:03:49 am »
well, yeah, im quite new at programming (just started a couple weeks ago) but thanks for the feedback and support.

EDIT: Oh, yeah, and Eeems, I guess i forgot the list in the file, to fix it just do this at the regular calculator screen (out of all apps/programs/whatever, dont know what to call it >_>)

{0,9,0}-LOPTN

where L=the list key

but thanks for the tip
« Last Edit: December 24, 2009, 12:14:20 am by Eeems »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Simon Game
« Reply #11 on: December 24, 2009, 12:12:35 am »
Yeah I kind of figured. It's a good thing you joined omnimaga.
If you want more help, don't hesitate to ask. Also if you need help quick, I'm sure the guys who are always in the irc channel would be happy to help.

Yeah I already did that. Actually an easier way then having to send it is to make your program make it by using the code I gave you.
« Last Edit: December 24, 2009, 12:19:15 am by Eeems »
/e

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Simon Game
« Reply #12 on: December 24, 2009, 11:04:56 am »
well, yeah, im quite new at programming (just started a couple weeks ago) but thanks for the feedback and support.
Cool! It's great to see new programmers already with a cool game!
As for me, it took me over a year to figure out loops and lists. :)
EDIT: Oh, yeah, and Eeems, I guess i forgot the list in the file, to fix it just do this at the regular calculator screen (out of all apps/programs/whatever, dont know what to call it >_>)
That is called the Home Screen.  The only other screen you have to worry about is the graph screen.  That's where you graph things and use the Draw commands.

Yeah, if you ever need any help, anyone would be glad to help you, be it on this site, or IRCing. :D
« Last Edit: December 24, 2009, 11:05:39 am by ztrumpet »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Simon Game
« Reply #13 on: December 24, 2009, 01:26:33 pm »
As for me, it took me over a year to figure out loops and lists. :)

Ditto, and even when i was first using lists, i uses Sum and Prod to extract individual elements XD

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Simon Game
« Reply #14 on: December 24, 2009, 01:41:49 pm »
Ouch x.x

When I first started, I didn't knew how to use lists either (grabbing an element from them, especially) and only restricted myself to the 31 or so variables x.x (including finance vars)