Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dinosteven

Pages: 1 2 [3] 4 5 ... 13
31
um, why is there a DelVar C, you don't need that.
But that requires a DelVar of C in case C somehow had a value of 26 or 34... x.x
If C=26 or C=34 before launching the program, then it'll start off in the wrong place, having already moved. lol, doesn't really matter, but just in case.
But in TI-Basic a loop is alwys entered at least once (I thought), so even if C is 45 in the beginning it'll enter the loop and'll be overwritten by getKey->C
Also, just tested it and i'm right, it enteres the repeat loop once in the beginning
No, I didn't mean that it will quit early if C=45. I meant C=26 or C=34. Do 26->C or 34->C before executing my code (without the DelVar). I'm almost positive that the * will NOT be in the upper left corner, it will be shifted right or down.
...and after testing, 26->C doesn't do this, as my code changes A with Ans, which is initialized as 1. But do a 34->C before executing my code. The * will start out at 2,1 rather than 1,1. That's what I was saying, not that it would quit.

32
um, why is there a DelVar C, you don't need that.
But that requires a DelVar of C in case C somehow had a value of 26 or 34... x.x
If C=26 or C=34 before launching the program, then it'll start off in the wrong place, having already moved. lol, doesn't really matter, but just in case.

33
Oh, and you can also reorganize it so that the getkey loop is last. That way, you can replace the Repeat C=45 with Repeat Ans=45.
Code: [Select]
ClrHome
DelVarC1→A
Ans→B
Repeat Ans=45
Output(B,A,"
max(1,min(16,A-(Ans=24)+(Ans=26→A
max(1,min(8,B-(C=25)+(C=34→B
Output(B,A,"*
Repeat Ans
getKey→C
End
End
But that requires a DelVar of C in case C somehow had a value of 26 or 34... x.x
EDIT:
And let's not forget the ultimate tool for the guy who desperately wants to use Ans, and Ans only... LISTS! I'm not sure if a list in Ans is faster than variables accessed normally... Probably the list is slower... anyone want to test this code? My calc is bricked...
Code: [Select]
ClrHome
{1,1,0
Repeat 45=Ans(3
Output(Ans(1),Ans(2),"*
Repeat Ans(3
{Ans(1),Ans(2),getKey
End
Output(Ans(1),Ans(2),"
{max(1,min(16,Ans(1)-(Ans(3)=24)+(Ans(3)=26))),max(1,min(8,Ans(2)-(Ans(3)=25)+(Ans(3)=34))),Ans(3
End
Oh gahwd, this is messy. It's definitely not faster lol.

34
You can replace variables with Ans in a few places.
Code: [Select]
ClrHome
1→A
Ans→B
Repeat C=45
Output(B,A,"*")
Repeat Ans
getKey→C
End
Output(B,A," ")
max(min(A-(Ans=24)+(Ans=26),16),1)→A
max(min(B-(C=25)+(C=34),8),1)→B
End

35
Miscellaneous / Re: Post your desktop
« on: July 24, 2013, 12:22:16 am »
What's the difference between gedit and pluma? From what I've seen, it's just a renaming.

36
Miscellaneous / Re: Post your desktop
« on: July 11, 2013, 07:45:15 pm »
I used to have my minecraft.jar on my Desktop... Then I decided I wanted an icon, so I put it back in Downloads and made a custom launcher with "java -jar '/home/steven/Downloads/minecraft.jar' " as the command.
Also, Unity sucks. :P

37
Miscellaneous / Re: AP Tests
« on: July 09, 2013, 04:47:33 pm »
Where do you wanna go? I know that the big schools won't take AP credits, but having 5s on your application will certainly help you get in, right?
As for my own scores:
Spoiler For Spoiler:


38
Computer Programming / Re: Some Java questions
« on: May 07, 2013, 02:23:03 pm »
What? 60-80 out of 100? O.O O.O
It's raw score. The score is calculated like
round(A+1.11(B+C+D+E),0)
Where A is the number of questions right out of 40,
B,C,D,and E are the Free Response scores out of 9 each.
So the highest possible score would be round(40+39.96,0) or 80 points.

39
Computer Programming / Re: Some Java questions
« on: May 06, 2013, 10:29:35 pm »
Okay... I think I get it.
I also have some more questions (our teacher went over topics and we all pretended we knew everything to avoid embarrassment :P).
What's a javadoc and everything to do with it?
What's Autoboxing (and will it be on the AP test)?
I took a practice and got 69.3 - a 5 is 60-80. Do you think I'm safe from getting a 4 if I make dumb mistakes?

40
Computer Programming / Re: Some Java questions
« on: May 05, 2013, 11:48:56 pm »
I've got a Java question too, but was too lazy to make a new topic. :P
What's the deal with Strings? Are they Objects or are they primitive data structures? I was under the impression that they were Objects, but you can do some stuff with them that you never could with any other objects.

41
TI-BASIC / Re: Need help with program
« on: May 05, 2013, 09:17:04 am »
What's funny about codebender's code is that "I WOULD SAY YES, BUT I DONT LIKE YOU" would get a "YAY! :D" in response.
As an optimization, and though it wouldn't work in the same way or catch a "YES" inside a larger string:
Code: [Select]
:ClrHome
:Asm(prgmALPHA
:Input "PROM?",Str1
:not(inString("YESUREYALRIGHTOK",Str1
:Pause sub("YAY! :D:",6Ans+1,7-5Ans
But prom was yesterday, so I'm too late anyways. :P

42
Miscellaneous / Re: AP Tests
« on: April 30, 2013, 11:02:23 pm »
Only taking Computer Science, as a Freshman. Not prepared at all. (I think it's on Tuesday for us.) Next year, I'm taking Stat and Calculus BC and Chemistry and Human Geography. Seems a lot of us here are Freshmen...

43
ASM / Re: [ON] Add
« on: April 27, 2013, 04:35:01 pm »
Well, you could compile a program in Axe for NoShell:
Code: [Select]
:.KEY
:Repeat getKey //only use this if you want it to loop
:End
:getKey->Ans
And it will give you getKey codes in Ans, [ON] having a code of its own. (Ans is the only variable I know how to access with Axe.) Keycodes will be different from those in BASIC; look at
http://axe.eeems.ca/keycodes.png
Hope that works.

44
Okay, thanks.

45
I have a question: What program do we submit if we're doing Axe? The compiled executable, or the source?

Pages: 1 2 [3] 4 5 ... 13