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 - lirtosiast

Pages: 1 2 [3]
31
Community Contests / Re: Code Golf - The Reboot #2
« on: June 11, 2015, 07:22:30 pm »
I'm told (this is the way JWinslow23 did it, anyway) that the program size is equal to the sum of the size of each token in your code, or equivalently the size shown on [2nd][MEM], minus the size of the program name, minus nine bytes. So the name doesn't matter.

I asked pimath about initializing the cursor, and they said it was unnecessary.

32
It looks like we've reached a consensus that, with the [ENDED] tag to clear things up, on-topic necroposting is allowed for after-the-fact optimizations or programming/golf tips. Therefore:

The only optimization I see in the top two TI-BASIC solutions is that on a MathPrint calculator, cumSum(binomcdf(14,0 can be randIntNoRep(1,14, saving two bytes at the cost of speed, since order does not matter. Either calc84maniac or Runer112 could have won the contest outright at 44 bytes if they had done this. Both of them noticed that If A≠1 could be optimized to If log(A, which is small but hard to notice.

33
Community Contests / Re: [ENDED] Code Golf Contest #9
« on: June 11, 2015, 02:22:36 pm »
I agree, Sorunome.

I guess I'll post in the threads corresponding to the challenges then, even if they're old, as long as I can contribute something. Does anyone have a differing opinion?

34
Community Contests / Re: [ENDED] Code Golf Contest #9
« on: June 11, 2015, 09:00:49 am »
That's fine with me. I didn't know that calc84 or JWinslow23 were inactive though; in fact I think I had seen them both last month.

35
Community Contests / Re: Code Golf Contest #9
« on: June 11, 2015, 12:56:42 am »
An excellent idea. I don't like that there's no better way to know whether a contest is active than to look inside or guess based on the position in the board, but it's the way it is.

36
Community Contests / Re: Code Golf Contest #9
« on: June 10, 2015, 11:48:38 pm »
I disagree with blindly sticking to the 120-day rule; the point is to avoid people constantly bump old posts without adding anything substantive, displacing the active ones. Since the current challenge is stickied, abd the topics were already on the first (and only) page of the subboard, should it be a problem if I add something new to each discussion?

I agree that I was impolite in the phrasing of my posts.

37
Community Contests / Re: Code Golf - The Reboot #2
« on: June 10, 2015, 09:55:42 pm »
Do we need to initialize the cursor at all (is it fine if the position of the cursor is the same as it was last session, and the program throws an error if a certain variable has an invalid value?)

Edit: I was told that we don't.

Is it acceptable if moving to the 5984 other pixels on the graph screen works, but not the single pixel (0,0)?

Edit: Never mind, I wasn't able to save that byte.

38
Community Contests / Re: Code Golf Contest #9
« on: June 10, 2015, 09:19:22 pm »
Sorry! I was under the impression that the code golf contest threads were open to discussion about the optimal solution to the problems, even after the end of the contest. I know the contests have been closed for months, but I thought I was contributing something valuable.

39
Community Contests / Re: Code Golf Contest #7
« on: June 10, 2015, 11:04:23 am »
Sorry for the necro.

Improving slightly (50->47) on JWinslow23's excellent TI-BASIC answer:

Input Str1
1
For(X,1,4
inString(Str1,sub("CODE",X,1),Ans
If not(Ans
ClrHome
Disp Ans
If Ans
End

40
Community Contests / Re: Code Golf Contest #9
« on: June 10, 2015, 01:42:21 am »
I would like to point out that calc84's submission in TI-BASIC is 10 bytes, not 9, because e is a two-byte token.

Edit: int(π2^π+cosh(e is 9 bytes.

Edit: -int(-10^(πtanh(int(π is 8 bytes. A solution in 7 may be possible.

41
The size of the program header for TI-BASIC entries should not be added to the scored size. Source means "length of code", not "file size stored in memory"; most languages have a header hundreds of bytes long on their files, and yet we don't count it. This gives an unfair advantage to non-calculator entries, whose headers are ignored.

I propose that TI-BASIC entries are counted as the size of the program in the [2nd][MEM] menu, minus the length of the name, minus nine bytes.

42
Community Contests / Re: Code Golf - The Reboot #2
« on: June 09, 2015, 05:22:32 pm »
I fixed my solution; now it doesn't repeat keys.

43
Community Contests / Re: Code Golf - The Reboot #2
« on: June 09, 2015, 04:04:00 pm »
Okay, I have 34 bytes in TI-BASIC, and that includes clearing the screen and starting the cursor at (0,0).

30 bytes if we don't need to initialize the cursor and it only works for a few seconds :P

44
Community Contests / Re: Code Golf - The Reboot #2
« on: June 09, 2015, 03:09:14 pm »
Do we need to initialize the cursor at any specific location, do we need to clear the screen first, and can we assume that the only pressed keys will be up, down, left, and right?

Pages: 1 2 [3]