Can it be..
Moderator: MaxCoderz Staff
- ProphetsDementia
- Regular Member
- Posts: 81
- Joined: Wed 06 Dec, 2006 2:20 am
- Location: Tokyo, Kanto, Japan
Can it be..
We should have a Calc Game Writing Contest. (200 words or less).
Here's an even funner idea:
I can't remember the name of it right now, but there's a common programmer challenge that gets done in almost every language.
The goal: create a program that prints out it's own source code in the fewest lines of code possible!
The best one ever done was written in C. It contained no code, and didn't print anything out. Therefore, the output was the same as the source code. That won't be allowed.
Any takers?
I can't remember the name of it right now, but there's a common programmer challenge that gets done in almost every language.
The goal: create a program that prints out it's own source code in the fewest lines of code possible!
The best one ever done was written in C. It contained no code, and didn't print anything out. Therefore, the output was the same as the source code. That won't be allowed.
Any takers?
- Jim e
- Calc King
- Posts: 2457
- Joined: Sun 26 Dec, 2004 5:27 am
- Location: SXIOPO = Infinite lives for both players
- Contact:
Sure.anykey wrote:Here's an even funner idea:
I can't remember the name of it right now, but there's a common programmer challenge that gets done in almost every language.
The goal: create a program that prints out it's own source code in the fewest lines of code possible!
The best one ever done was written in C. It contained no code, and didn't print anything out. Therefore, the output was the same as the source code. That won't be allowed.
Any takers?
TI-83+ Basic:
Code: Select all
:1
Does this count?
http://kvince83.tengun.net/maxboard/vie ... ight=romeo
http://kvince83.tengun.net/maxboard/vie ... ight=romeo
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
- ProphetsDementia
- Regular Member
- Posts: 81
- Joined: Wed 06 Dec, 2006 2:20 am
- Location: Tokyo, Kanto, Japan
- Arcane WIzard
- Calc Guru
- Posts: 856
- Joined: Mon 21 Feb, 2005 7:05 pm
- ProphetsDementia
- Regular Member
- Posts: 81
- Joined: Wed 06 Dec, 2006 2:20 am
- Location: Tokyo, Kanto, Japan
Nice try, but it doesn't work. The code has to do some form of output, which would have to be disp or Output( in tibasic.Jim e wrote:Sure.anykey wrote:Here's an even funner idea:
I can't remember the name of it right now, but there's a common programmer challenge that gets done in almost every language.
The goal: create a program that prints out it's own source code in the fewest lines of code possible!
The best one ever done was written in C. It contained no code, and didn't print anything out. Therefore, the output was the same as the source code. That won't be allowed.
Any takers?
TI-83+ Basic:Code: Select all
:1
Quine was the word I was looking for!
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact:
No, writing a number or variable as the last line of the code prints it out. Writing :1 would display 1 on the homescreen.anykey wrote:Nice try, but it doesn't work. The code has to do some form of output, which would have to be disp or Output( in tibasic.Jim e wrote:Sure.anykey wrote:Here's an even funner idea:
I can't remember the name of it right now, but there's a common programmer challenge that gets done in almost every language.
The goal: create a program that prints out it's own source code in the fewest lines of code possible!
The best one ever done was written in C. It contained no code, and didn't print anything out. Therefore, the output was the same as the source code. That won't be allowed.
Any takers?
TI-83+ Basic:Code: Select all
:1
Quine was the word I was looking for!
Vouchthreefingeredguy wrote:No, writing a number or variable as the last line of the code prints it out. Writing :1 would display 1 on the homescreen.anykey wrote:Nice try, but it doesn't work. The code has to do some form of output, which would have to be disp or Output( in tibasic.
Quine was the word I was looking for!
- thegamefreak0134
- Extreme Poster
- Posts: 455
- Joined: Mon 23 Jan, 2006 10:09 pm
- Location: In front of a Computer, coding
- Contact:
In a computer language it would be easy enough. You simply have the source separate from the compiled file, and you have the program read that file, and then display it onscreen. In VB.NET I would copy that code to a multi-line text box, but in C or C++ you could simply spit it out to the console.
You could make somewhat of a disassembler in calc asm, and have it disassemble itself, couldn't you?
You could make somewhat of a disassembler in calc asm, and have it disassemble itself, couldn't you?