We haven't had one in a while so let's have a new coding contest. I'm open to suggestions for the challenge, but if we don't have any good suggestions we will default to something stupid like "implement cowsay in erlang shitty language X".
You find yourself trapped in a pit, deep and square.
Blocks are falling from the sky. One reaches the ground and blasts your ears with a resounding thud. You shiver.
The next block appears to be more complex than the last one, and the one after that appears to be more complex than that one. You do not think this cycle will end.
Obvious exits are UP.
_
Name:
Anonymous2009-11-28 17:02
UP⏎
Name:
Anonymous2009-11-28 17:16
You cannot fly!
You turn around just as another block lands by your feet. It suddenly occurs to you that there is little time before a block will try to occupy the same space as your body and crush it.
_
>>24
So pong, but instead of a ball you have a tetromino (or however the fuck that's spelt), and each time it hits off a bat, the previous number is added to the mix?
Name:
Anonymous2009-11-28 18:03
Given a function fibs(int n):int, that returns the n'th fibonacci number, write a function sumFibs(int n):int, that returns the sum of the first n fibonacci numbers with only one call to fibs and no loops or recursion.
I was thinking along the lines of playing pong and tetris at the same time. Whenever you miss a ball in pong, another garbage line is added to the game of tetris. Every time you gain a level in tetris, the number of balls becomes the next fibonacci number, but you need to have that number of balls scored against you to have a line added. Speed increases in both games with each level.
For example, on level 8 of tetris, you would have 21 balls on screen at once, and every 21st point scored against you would add a garbage line to the tetris playfield.
Now we just need FV (or MDickie) to lead the team, and we're set.
Name:
OP2009-11-28 18:33
Since we can't seem to get a consensus on anything other than fibs and the weird tetris is unlikely to be doable in a day. I'm just going to go with the default.
Implement Cowsay or equivalent program for a different animal (e.g tablecats). It must support the -n command line option. The text lines must wrap at 40 characters by default, and may be overriden by a -W flag. All other details are optional, but highly recommended. For more information, please see man cowsay
>>35,36
Assuming you do it in a day, you win. The purpose of this thread wasn't to make something useful, but just to counter some of the spam that gets posted and to get people to post code for a change
Name:
Anonymous2009-11-28 18:44
>>37
So why are you saging a non-spam thread then?
Hell, I bumped the duck typing thread because it was less spammy than average.