Author Topic: [TI-83+ BASIC] routine help  (Read 7785 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
[TI-83+ BASIC] routine help
« Reply #15 on: October 16, 2006, 06:33:00 am »
yea he prbly wanted to make the code still understandable, or prbly radical_pi didnt checked this topic after his reply, interesting guide tho you posted here, tifreak8x should add it to his link section if not done alerady. Welcome here btw :)smile.gif

burr

  • Guest
[TI-83+ BASIC] routine help
« Reply #16 on: October 16, 2006, 07:47:00 am »
QuoteBegin-xlibman+16 Oct, 2006, 12:33-->
QUOTE (xlibman @ 16 Oct, 2006, 12:33)
yea he prbly wanted to make the code still understandable, or prbly radical_pi didnt checked this topic after his reply, interesting guide tho you posted here, tifreak8x should add it to his link section if not done alerady. Welcome here btw :)smile.gif

kalan_vod wanted to make the code understandable? I think you're talking about a different kalan_vod, because the kalan_vod I know loves hard to  read code :Ptongue.gif

The optimization guide I linked to is part of the http://tibasicdev.wikidot.com wiki I started a couple months ago. The wiki has lots of other good TI-Basic information (including a pretty good http://tibasicdev.wikidot.com/resources page :Dbiggrin.gif) and is open to every TI-Basic programmer to contribute to. Hopefully it can keep growing and become a valuable resource for the TI-Basic community.

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
[TI-83+ BASIC] routine help
« Reply #17 on: October 16, 2006, 10:46:00 am »
thanks burr I like that code better and also kalan_vod there is nothing I dont understand about your code it is very fast and easy
There are 10 types of people in this world-- those that can read binary, and those that can't.

burr

  • Guest
[TI-83+ BASIC] routine help
« Reply #18 on: October 16, 2006, 09:58:00 pm »
QuoteBegin-Killerplayer+16 Oct, 2006, 16:46-->
QUOTE (Killerplayer @ 16 Oct, 2006, 16:46)
thanks burr I like that code better and also kalan_vod there is nothing I dont understand about your code it is very fast and easy

I don't think kalan_vod left off those optimizations because he thought you didn't understand them. Most likely he just forgot about them; there's lots of optimizations to remember.

burr

  • Guest
[TI-83+ BASIC] routine help
« Reply #19 on: October 16, 2006, 10:15:00 pm »
QuoteBegin-kalan_vod+15 Oct, 2006, 13:29-->
QUOTE (kalan_vod @ 15 Oct, 2006, 13:29)
c1-->
CODE
ec1DelVar XRepeat Ans or X=26;If inString works or it reaches the end quit loop
X+1->X;advance the pointer
inString("ABCDEFGHIJKLMNOPQRSTUVWXYZ",Str1,X->O;testing, store into O
End;hope you know this
If O:then;if inString contain what Str1 did, then excute this code. if it didnt find it, it continues onward
...
End
c2
ec2

I might be missing something, but why not use the code PiMan posted? The inString( command starts with the first character in the string and moves to the right by default, so there really is no need to introduce another variable or even use a loop; a simple conditional will do.

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
[TI-83+ BASIC] routine help
« Reply #20 on: October 17, 2006, 03:08:00 am »
its the same kalan I think, he prbly forgot some of them, as well as radical Pi, no one is perfect x.x plus they may have been in a hurry at that time

personally I write hard to understand code as well, only problem is that it's not as optimised as it would be with some other ppl :(sad.gif

Offline Halifax

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1334
  • Rating: +2/-1
    • View Profile
    • TI-Freakware
[TI-83+ BASIC] routine help
« Reply #21 on: October 17, 2006, 09:33:00 am »
@burr: I think Kalan's code is better and very fast(33 chars per second) also I am testing anywhere from 6-120 types of chars and 200 chars at a time so I think his is the best for me and also I did not quite understand Radical Pi's code
There are 10 types of people in this world-- those that can read binary, and those that can't.

Offline Radical Pi

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1143
  • Rating: +5/-2
    • View Profile
    • RealityRevolution
[TI-83+ BASIC] routine help
« Reply #22 on: October 17, 2006, 09:59:00 am »
My code was the bare minimum. It is basically kalan's without a loop, which WILL work. Faster and Smaller, right? I'd expect so, but I'm only good with this in theory. :)smile.gif
One of these days I'll get a sig I'm really proud of.

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
[TI-83+ BASIC] routine help
« Reply #23 on: October 17, 2006, 04:23:00 pm »
Hey burr, and this isn't my territory anymore since I just came back and am working on Asm >.>...sorry

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
[TI-83+ BASIC] routine help
« Reply #24 on: October 18, 2006, 09:46:00 am »
w00t I want to see a 8 level grayscale first person shooter now kalan!!!

I hope you arent leaving us tho O_Oshocked2.gif i would hate to see you go because you now program asm :(sad.gif because you are a nice member in this community and on top of that we dont have enough asm programmers x.x