Author Topic: New Tricks For Pure Basic Coders.  (Read 12227 times)

0 Members and 1 Guest are viewing this topic.

Offline JonimusPrime

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 389
  • Rating: +25/-5
    • View Profile
    • Jonimoose.net
New Tricks For Pure Basic Coders.
« Reply #15 on: August 11, 2007, 05:09:00 am »
I wonder if it is th same for repeat?

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

Offline Speler

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 857
  • Rating: +6/-2
    • View Profile
New Tricks For Pure Basic Coders.
« Reply #16 on: August 11, 2007, 05:20:00 am »
Well, Repeat works differently (it always completes the loop at least once).

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
New Tricks For Pure Basic Coders.
« Reply #17 on: August 11, 2007, 11:07:00 am »
what is StartTmr?

Offline Speler

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 857
  • Rating: +6/-2
    • View Profile
New Tricks For Pure Basic Coders.
« Reply #18 on: August 11, 2007, 11:58:00 am »
It is a command built into 84+'s and 84+ SE's which tells you in interger form what time it is.  It is used like this:

:StartTmr->T
...Test Code...
:CheckTmr(T

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
New Tricks For Pure Basic Coders.
« Reply #19 on: August 11, 2007, 12:45:00 pm »
ah ok i see

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
New Tricks For Pure Basic Coders.
« Reply #20 on: October 12, 2007, 09:15:00 am »
*bump*

I don't know if this has been said before in another topic but...

c1-->
CODE
ec1
10->X
100->X
200->X
c2
ec2

optimizes to

c1
-->
CODE
ec1
E2->X
E3->X
2E3->X
c2
ec2

Just a play scientific notation. It works just as fast, if not faster than the former.

I don't know about math operations on scientific notation numbers, but I would expect it to be the same. Either way this is a great way to save bytes.
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline Speler

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 857
  • Rating: +6/-2
    • View Profile
New Tricks For Pure Basic Coders.
« Reply #21 on: October 12, 2007, 09:33:00 am »
Actually, 10^( is generally a faster way to do the same (or rather, a very similar) thing.

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
New Tricks For Pure Basic Coders.
« Reply #22 on: October 12, 2007, 09:40:00 am »
Really? It has been tested?
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline Speler

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 857
  • Rating: +6/-2
    • View Profile
New Tricks For Pure Basic Coders.
« Reply #23 on: October 12, 2007, 09:43:00 am »
Yup, it's in basic code timing thingy... I mean 10^( as one token by the way.

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
New Tricks For Pure Basic Coders.
« Reply #24 on: October 12, 2007, 10:00:00 am »
Yeah, I understand, cool. I didn't know that. :)smile.gif
There are 10 types of people in this world-- those that can read binary, and those that can't.

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
New Tricks For Pure Basic Coders.
« Reply #25 on: October 12, 2007, 12:33:00 pm »
i didn't knew E can be used without a number as prefix o.oblink.gif

Offline JonimusPrime

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 389
  • Rating: +25/-5
    • View Profile
    • Jonimoose.net
New Tricks For Pure Basic Coders.
« Reply #26 on: October 12, 2007, 03:59:00 pm »
Yep it is very helpful that way

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
New Tricks For Pure Basic Coders.
« Reply #27 on: November 07, 2007, 03:41:00 pm »
Well I just saw burr post about the graphing vars, and it is very useful!
c1-->
CODE
ec1:"randInt(X,Y->u;2nd 7 or 8 (u or v)c2
ec2
Now execute u/v and it works as an instruction ;)wink.gif

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
New Tricks For Pure Basic Coders.
« Reply #28 on: November 07, 2007, 03:44:00 pm »
example, screenshot? o.oblink.gif

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
New Tricks For Pure Basic Coders.
« Reply #29 on: November 07, 2007, 03:51:00 pm »
QuoteBegin-burr+-->
QUOTE (burr)
You don't need to store C to a variable; Ans can be used instead.
CODE
:For(A,1,26+8D
:Repeat (B,Ans
:randInt(1,9→B
:randInt(1,9
:End
:0→(B,Ans
:End

However, if you use the randInt(1,9 statement elsewhere in your program, you can store it to one of the graphing variables (such as u or v) and then use that instead.
CODE
:"randInt(1,9→u
:For(A,1,26+8D
:Repeat (B,Ans
:u→B:u
:End
:0→(B,Ans
:End