Author Topic: GAME: Optimize this! (83+BASIC)  (Read 11347 times)

0 Members and 4 Guests 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
GAME: Optimize this! (83+BASIC)
« Reply #30 on: August 31, 2007, 11:35:00 am »
harrier, never forget to remove the last " in string storage so
"TTT TTT  T  T  T T  T   T T TTTT T  TT  TTT TTTT T  T   T T T  T T  TTT T T T  T=  -= 2002 =-  ="→Str1
would become
"TTT TTT  T  T  T T  T   T T TTTT T  TT  TTT TTTT T  T   T T T  T T  TTT T T T  T=  -= 2002 =-  =→Str1


And burr it is Output(, not Text(, since the program title screen if homescreen

I still didnt checked all programs but I have went through some of them alerady on first page, don't worry ;)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
GAME: Optimize this! (83+BASIC)
« Reply #31 on: September 02, 2007, 01:54:00 am »
Update. I am sorry to announce that the first BASIC optimizing contest is being cancelled (in some ways).

As some people have noticed I've did lot of works and updates on Omnimaga website in the past week. When I've started those contests, I did not realise the pain and hassle I would have to try everybody's program. Since the formatting in those piece of code is different than TI-Graph Link and SourceCoder I have to copy every single piece of code by hand on my calculator, one by one, and this is just way too much work for me alone. Sorry everyone :(sad.gif

So what I am doing now, is that I am skipping to Contest 2 without declaring any winners for the first one, which is cancelled. However, contest 2 use the EXACT same piece of code than the first one (see the first post of this topic). You have to optimize it to make it as small as possible and make sure it still function like the original. However, you must include a 8xp file with your source code posted here. If the forum upload doesn't work for you use http://www.savefile.com to upload your optimized program.

Afterward, all programs will be tested directly on calc, and size of each of them will be compared, to finally declare the winner.

Sorry again for this.  

Xphoenix

  • Guest
GAME: Optimize this! (83+BASIC)
« Reply #32 on: September 02, 2007, 04:21:00 am »
Two things:

1. Forum upload doesn't work for me... When I attach, and then preview OR post, it takes me the portal.

2. This is sort of a compilation of everyone's code, so... (Namely Weregoose and burr)

3. http://www.savefile.com/files/1023805

4. I can't count right right now.

[ EDIT ]

Oh yeah...

5. Source:

QuoteBegin-"BASIC Code"+-->
QUOTE ("BASIC Code")
:ArchivePic1
:DelVar R12→dim(?A
:Ans→dim(?B
:Ans→dim(?C
:FnOff
:PlotsOff
:Normal
:Float
:Full
:GridOff
:AxesOff
:ZStandard
:ClrHome
:"?
:For(A,1,4
:For(B,1,40
:Ans+sub(" TTTT EEEE AAAA MMMM",5A-4,expr(sub("4412121221211225213145212112221221422212",B,1
:End
:Ans+sub("

Offline Radical Pi

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1143
  • Rating: +5/-2
    • View Profile
    • RealityRevolution
GAME: Optimize this! (83+BASIC)
« Reply #33 on: September 02, 2007, 06:52:00 am »
Wouldn't combining everyone else's code be cheating? ._.
One of these days I'll get a sig I'm really proud of.

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
GAME: Optimize this! (83+BASIC)
« Reply #34 on: September 02, 2007, 05:18:00 pm »
not in this contest, because your goal is also to find more optimizations in the code people posts as well, so the prgm is even better. make sure to say you took some part of the code tho

Weregoose

  • Guest
GAME: Optimize this! (83+BASIC)
« Reply #35 on: September 02, 2007, 09:02:00 pm »
In that case, you can change...
c1-->
CODE
ec1If θ=15 and LA(1
?A→L1
If θ=32 and LB(1
?B→L1
If θ=49 and LC(1
?C→L1c2
ec2
Into...
c1
-->
CODE
ec1For(X,1,3
expr("?"+sub("ABC",X,1
If θ=17X-2 and Ans(1
Ans→L1
Endc2
ec2
In order to save six bytes.

Xphoenix

  • Guest
GAME: Optimize this! (83+BASIC)
« Reply #36 on: September 03, 2007, 05:19:00 am »

Offline dinhotheone

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 410
  • Rating: +2/-1
    • View Profile
GAME: Optimize this! (83+BASIC)
« Reply #37 on: September 03, 2007, 08:44:00 am »
QuoteBegin-Weregoose+3 Sep, 2007, 3:02-->
QUOTE (Weregoose @ 3 Sep, 2007, 3:02)
In that case, you can change...
c1-->
CODE
ec1If θ=15 and LA(1
?A→L1
If θ=32 and LB(1
?B→L1
If θ=49 and LC(1
?C→L1c2
ec2
Into...
c1
-->
CODE
ec1For(X,1,3
expr("?"+sub("ABC",X,1
If θ=17X-2 and Ans(1
Ans→L1
Endc2
ec2
In order to save six bytes.  

 WHOA! i didnt know you could do that! could you also declare lists like that? i must test this!


Weregoose

  • Guest
GAME: Optimize this! (83+BASIC)
« Reply #38 on: September 03, 2007, 12:10:00 pm »
The concept of a user giving a name to a list by any means other than explicitly typing it out has been beaten to death. I'm sorry to say that it cannot be done in TI-Basic.

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
GAME: Optimize this! (83+BASIC)
« Reply #39 on: September 03, 2007, 02:04:00 pm »
you mean using input?

Offline Speler

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 857
  • Rating: +6/-2
    • View Profile
GAME: Optimize this! (83+BASIC)
« Reply #40 on: September 03, 2007, 03:00:00 pm »
No, he means having the user input the name and for a list to then be created with that name.

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
GAME: Optimize this! (83+BASIC)
« Reply #41 on: September 03, 2007, 03:45:00 pm »
yeah thats what i meant, i wish it was possible tho, too bad it isn't

Xphoenix

  • Guest
GAME: Optimize this! (83+BASIC)
« Reply #42 on: September 06, 2007, 11:37:00 am »
Sooooo. . . Contest over?

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
GAME: Optimize this! (83+BASIC)
« Reply #43 on: September 06, 2007, 05:33:00 pm »
well if anyone still have new programs i can accept them, but for now you're kinda winner by default since you're the only one to meet the (new) requirements x.x (both source posted and a 8xp file)

thanks to everyone for participating though, I'll try to prepare more when i do the next contest. It may be another prgm from this game, but I'm not sure yet.

Offline Radical Pi

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1143
  • Rating: +5/-2
    • View Profile
    • RealityRevolution
GAME: Optimize this! (83+BASIC)
« Reply #44 on: September 06, 2007, 10:57:00 pm »
I provided a .8xp... just to the wrong upload site  :icebeam:s196.gif

Any thoughts on what the next basic optimization project could be?
One of these days I'll get a sig I'm really proud of.