Author Topic: Horse racing game HELP ^^''  (Read 18466 times)

0 Members and 1 Guest are viewing this topic.

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: Horse racing game HELP ^^''
« Reply #15 on: March 14, 2010, 09:11:35 pm »
hey, if I agree with your post I can repeat again, right? Plus I was going in more details regarding game size/memory

Offline Gale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +1/-0
  • Ti-84+ Silver Edition
    • View Profile
Re: Horse racing game HELP ^^''
« Reply #16 on: March 14, 2010, 09:26:33 pm »
thanks guys! and yeah, i decided that i will just use normal pics xD

the one thing i hate is just how you can only have up to 10 stored pics.. it gets annoying when i want to have several complex programs on my calc that involve a lot of pics.

now i'm working on the "horse's market", where you can buy your horse food and gear to make it more likely to win P:
remember me as a time of day...

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: Horse racing game HELP ^^''
« Reply #17 on: March 14, 2010, 09:30:23 pm »
With Xtravar on ticalc.org, you can actually have 255, but keep in mind these are very hard to send from PC to calc. First, to be sent to the PC, they need to be ungrouped. Then, when sent to the calc, they must not be ungrouped during transfer. Only after you finished then go in 2nd+MEM->Group->Ungroup. However, the problem is that on certain computer hardwares, the "Send to TI Device" option will not show up when right-clicking calc programs on the computer and sadly, this one sending method is the only way to send such pics to the calc, as all other methods ungroups the files then give "invalid filename" errors when sending.

Offline JoeyBelgier

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 545
  • Rating: +25/-21
  • Joey
    • View Profile
Re: Horse racing game HELP ^^''
« Reply #18 on: March 14, 2010, 09:33:01 pm »
hey, if I agree with your post I can repeat again, right? Plus I was going in more details regarding game size/memory
Sure, I just thought you read over it :X

Offline Gale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +1/-0
  • Ti-84+ Silver Edition
    • View Profile
Re: Horse racing game HELP ^^''
« Reply #19 on: March 14, 2010, 09:36:09 pm »
Xtravar just made my day. thank you! :D

does everybody who will be using the programs involving pics(11-255) need to have xtravar?
remember me as a time of day...

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: Horse racing game HELP ^^''
« Reply #20 on: March 14, 2010, 09:43:43 pm »
hey, if I agree with your post I can repeat again, right? Plus I was going in more details regarding game size/memory
Sure, I just thought you read over it :X
nah I didn't. Keep in mind that even if I did, though, we have to be careful to how we word stuff sometimes, though, because if said to some people, the people might feel like you are humiliating them in public then feel like not posting again.

Back on Xtravar:

Xtravar just made my day. thank you! :D

does everybody who will be using the programs involving pics(11-255) need to have xtravar?
nope, you don't need to keep Xtravar on the calc to use the pics. These pics can even be used with xLIB and recallpic command. Just keep a copy of xtravar around during coding then when people download your game, they don't need it.

Also keep up the good work on the racing game. Feel free to ask more help if you need some
« Last Edit: March 14, 2010, 09:45:51 pm by DJ Omnimaga »

Offline miotatsu

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 332
  • Rating: +11/-1
    • View Profile
Re: Horse racing game HELP ^^''
« Reply #21 on: March 14, 2010, 10:41:56 pm »
I recommend Picarc personally, it lets you store your map files in a subprogram and thus makes it easy to transfer and use large amounts of pics, it can also be renamed of course so it sits nice and neat at the bottom of the program list, just be sure to credit Iambian if you use it :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: Horse racing game HELP ^^''
« Reply #22 on: March 15, 2010, 07:16:19 am »
Oh right I always forget about that one x.x, I assume pics are stored in archive while you use some other program to recall them, right? Seeing "arc" in the name that's what I guessed but I was not entirely sure...

Offline Gale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +1/-0
  • Ti-84+ Silver Edition
    • View Profile
Re: Horse racing game HELP ^^''
« Reply #23 on: March 15, 2010, 07:01:58 pm »
while using xLIB a LOT today,  i found that you can recall pics and store/create 255 pics with xLIB, which includes archived pics.

what do you mean "subprograms" with picarc?

ehh, i have another question. is there any way i can make randInt based off of probability? because i want to create the "horse shop" where you can buy things to increase the probability of a specific horse winning.
« Last Edit: March 15, 2010, 07:28:18 pm by Gale »
remember me as a time of day...

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Horse racing game HELP ^^''
« Reply #24 on: March 15, 2010, 07:35:11 pm »
yeah you can, just use variables to define the range and just change the variables to change the range for your probability.
/e

Offline Gale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +1/-0
  • Ti-84+ Silver Edition
    • View Profile
Re: Horse racing game HELP ^^''
« Reply #25 on: March 15, 2010, 07:47:51 pm »
ahh. never thought of that! thank you
remember me as a time of day...

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Horse racing game HELP ^^''
« Reply #26 on: March 15, 2010, 08:12:09 pm »
Np, always glad to help :)
/e

Offline Gale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +1/-0
  • Ti-84+ Silver Edition
    • View Profile
Re: Horse racing game HELP ^^''
« Reply #27 on: March 16, 2010, 03:32:38 pm »
okay, now i'm using variables to change the probability, but i'm 90% sure that my method is terribly unefficient. i'm just using a:

:If S>1 and S<20:Then
: blah blah blah

type of thing, (with more If statements added of course), with the variables just at randInt(1,100) right now. is there a better way? i want it so when somebody buys something, it will increase the probability for one horse and decreasing the probability for the other horses.
remember me as a time of day...

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Horse racing game HELP ^^''
« Reply #28 on: March 16, 2010, 04:19:59 pm »
I would probably set the variables and do randInt(1,S) instead
/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: Horse racing game HELP ^^''
« Reply #29 on: March 16, 2010, 04:29:21 pm »
I'd do it that way too. :D

I was inspired by this, so I made a horse racing game:
Code: [Select]
ClrHome
{25,25,25,25,25->L1
{1,1,1,1,1->L2
While 17>int(max(L2
For(A,1,5
max(10,min(100,L1(A)+randInt(-5,5->L1(A
End
L2+.01L1->L2
For(A,1,5)
int(L2(A
Output(A,1,"                //16 spaces
If Ans<17
Output(A,Ans,"*
End
End
Output(6,14,max((max(L2)=L2)cumSum(binomcdf(4,0
DelVar L1DelVar L2Output(6,1,"WINNER:HORSE
If you want to, you can take any code from it.  That goes for anyone! ;D

Oh, and if anyone wants it explained, I'll gladly explain it! ;)
« Last Edit: March 16, 2010, 04:30:04 pm by ztrumpet »