Can it be..

Feel like posting Off Topic? Do it here.

Moderator: MaxCoderz Staff

User avatar
ProphetsDementia
Regular Member
Posts: 81
Joined: Wed 06 Dec, 2006 2:20 am
Location: Tokyo, Kanto, Japan

Can it be..

Post by ProphetsDementia »

We should have a Calc Game Writing Contest. (200 words or less).

:twisted:
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

Im not sure what you mean by writing ... as in coding an actual game or coming up with a game concept?
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Post by anykey »

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 think, therefore iMac
Image
User avatar
Jim e
Calc King
Posts: 2457
Joined: Sun 26 Dec, 2004 5:27 am
Location: SXIOPO = Infinite lives for both players
Contact:

Post by Jim e »

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?
Sure.

TI-83+ Basic:

Code: Select all

:1
Image
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

anykey wrote:I can't remember the name of it right now, but there's a common programmer challenge that gets done in almost every language.
It’s called quine.
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

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
User avatar
ProphetsDementia
Regular Member
Posts: 81
Joined: Wed 06 Dec, 2006 2:20 am
Location: Tokyo, Kanto, Japan

Post by ProphetsDementia »

Not exactly what I had in mind.
"Choice. The problem is choice."
"Quite correct. Strange; that was quicker than the others."
"Others?"

"In your case, this is the sixth version of the Matrix."
"Sixth version? Then, either no one told me or no one knew."
User avatar
Arcane WIzard
Calc Guru
Posts: 856
Joined: Mon 21 Feb, 2005 7:05 pm

Post by Arcane WIzard »

I'm not entirely clear on what you have in mind either. One of the things tr1p1ea mentioned or maybe writing a story for a game? Or something else entirely?
User avatar
ProphetsDementia
Regular Member
Posts: 81
Joined: Wed 06 Dec, 2006 2:20 am
Location: Tokyo, Kanto, Japan

Post by ProphetsDementia »

You write a story from the calc's sprite point of view.

:P
"Choice. The problem is choice."
"Quite correct. Strange; that was quicker than the others."
"Others?"

"In your case, this is the sixth version of the Matrix."
"Sixth version? Then, either no one told me or no one knew."
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

Sounds kinda fun, the last idea.
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Post by anykey »

Jim e wrote:
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?
Sure.

TI-83+ Basic:

Code: Select all

:1
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!
I think, therefore iMac
Image
threefingeredguy
Calc King
Posts: 2195
Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:

Post by threefingeredguy »

anykey wrote:
Jim e wrote:
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?
Sure.

TI-83+ Basic:

Code: Select all

:1
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!
No, writing a number or variable as the last line of the code prints it out. Writing :1 would display 1 on the homescreen.
Image
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

threefingeredguy wrote:
anykey wrote:
Jim e wrote:Sure.

TI-83+ Basic:

Code: Select all

:1
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!
No, writing a number or variable as the last line of the code prints it out. Writing :1 would display 1 on the homescreen.
Vouch
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Post by anykey »

I just got owned. So much for a quine contest with basic.
What about asm?
I think, therefore iMac
Image
User avatar
thegamefreak0134
Extreme Poster
Posts: 455
Joined: Mon 23 Jan, 2006 10:09 pm
Location: In front of a Computer, coding
Contact:

Post by thegamefreak0134 »

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?
I'm not mad, just a little crazy.

DarkNova - a little side project I run.
Post Reply