Tagged Questions
31
votes
6answers
3k views
(Re)Implementing Tetris
In the spirit of re-implementing classic video games, I would like to invite the community to create their best implementation of Tetris.
For reference, a screenshot of the official NES version of ...
14
votes
13answers
1k views
Rock, Paper, Scissors, Lizard, Spock
Create a function that will take two strings as input and return a single output for the result. Most popular answer wins.
The rules of Rock-paper-scissors-lizard-Spock are:
Scissors cut paper
...
7
votes
3answers
750 views
Tic Tac Tae Toe
(Better known as 3D Tic Tac Toe; I just made up a name that sounded catchy ;-) )
Let two people play this game against each other.
Specifications:
Output
the easiest way of explaining this will ...
6
votes
1answer
351 views
Graphical, networked, two-(human)-player Tic-Tac-Toe
Create a Tic-Tac-Toe game that allows two human players to play against each other using two networked devices.
Requirements:
Network play.
Program must let both players know whose turn it is.
...
5
votes
2answers
222 views
2D javascript table graphics
The challenge
Make a JavaScript program that can use a HTML table as a canvas, having each cell a pixel.
You can either input the position and color values in a form or by using the console.
Score ...
4
votes
29answers
1k views
Constant output program
I was wondering how one might go and produce a program that takes input from some kind of random source and uses it to produce constant output. An obvious way is, for example, to take an integer x and ...
4
votes
9answers
689 views
Eight Queens Obsfucation
You've probably heard of the classic Eight Queens Puzzle. For those of you who haven't it goes something like this:
Position 8 queens on an 8×8 chessboard so that no two queens threaten
each ...
4
votes
0answers
295 views
Program which tells two different storys [closed]
this code looks like a story but does nothing useful. My challenge for you guys is to write piece of code which sounds like another story but it must generate output - another story.
So the point of ...
2
votes
13answers
637 views
Same code shape and output shape [closed]
I am not sure if this is possible. I have tried it and couldn't make it work at all, but I am being hopeful.
If this is not possible please flag this question and I will promptly delete it.
...
0
votes
0answers
34 views
Improve the Eclipse: Detect tail recursion
Eclipse is a great tool for coding in Java. Even though it warns the user about a lot of probably usesless thing he/she does, I think one of the most crucial warning is missing: Tail recursion!
Task
...