Tagged Questions
10
votes
1answer
266 views
Solitaire Dreams - Creating a winnable solitaire starting hand
It's me. Cave Johnson.
It's May 21st. You are working at Aperture Science, finest company on Earth, and tomorrow we're releasing Version 3.0 of our flagship windowing system (or WindowS): CavOS. ...
6
votes
10answers
444 views
Non-transitive dice game
Those of you who like Numberphile would be familiar with Dr. James Grime, who described a non-transitive dice game on his channel.
The game consists of three 6-faced dice:
Die 1: 3,3,3,3,3,6
Die 2: ...
11
votes
5answers
459 views
Score a game of Bowling
Your task is to sum up and output one player's score in a game of 10-pin bowling after up to 21 rolls.
The rolls are represented as space separated integers on a single line of input.
Each integer ...
6
votes
6answers
443 views
Score a game of Yahtzee
For each of the 13 rows of a Yahtzee scoresheet you are given (from stdin)
a space separated list of 5 numbers (dice).
Your task is to calculate the score for each line and output the Grand Total of ...
6
votes
4answers
821 views
Recreate the classic snake Game
The challenge is to create the classic Snake game using as few bytes as possible.
Here are the requirements:
The game must be implemented in a typical 2-dimensional layout. The snake should be able ...
6
votes
3answers
370 views
Build a Simple Roguelike
This challenge is based on one proposed on the usenet group rec.games.roguelike.development a few years ago. I can't find the original newsgroup post, but you can have a look a the Github repo of ...
8
votes
3answers
594 views
Score a game of Go
Scoring a Go game is a task that is not all too easy. In the past there have been several debates about how to design rules to cover all the strange corner cases that may occur. Luckily, in this task ...
12
votes
9answers
1k views
Name the poker hand
Name the poker hand
Given five cards, output the name of the poker hand, which will be one of:
High card
One pair
Two pair
Three of a kind
Straight
Flush
Full house
Four of a kind
Straight flush
...
8
votes
2answers
358 views
Play a perfect game of Mu Torere
Background
Mu Torere is a game that is one of only two known to be played by the Maori people of New Zealand before European influence. This makes it a very unique game in that it has an "objective ...
16
votes
5answers
733 views
Score a Cribbage Hand
This challenge is to score a Cribbage hand. If you don't play Cribbage, you've got some learning to do. We play with a standard poker deck, and a hand consists of four cards plus the "up card". ...
8
votes
4answers
1k views
Recreate a 'Snake' game in a console/terminal
Games are fun
this codegolf here was so fun I had to make a version for other classic games similar in complexity. Shortest Way of creating a basic Space Invaders Game in Python
This time, however, ...
4
votes
0answers
300 views
Unique Sudoku Finder
Challenge:
Given a Sudoku board on standard input, find the minimum number of numbers added to make the board unique.
Specifics/Rules:
The input is formatted as follows (all whitespace is ...
1
vote
4answers
410 views
Bingo card generator
A Bingo card is five columns of five squares each, with the middle square designated "FREE". Numbers cannot duplicate.
The five columns are populated with the following range of numbers:
B:1-15
...
10
votes
9answers
2k views
Hangman wordgame golf
Inspired by reddit.
Write a program which plays Hangman.
The program chooses a random word from a list of N words, where N > 2.
The word list can be provided to the program in any way you choose.
...
6
votes
10answers
663 views
Guess the number.
Description
Create a fully working "Guess the number" game. The game is played by two players as follows:
player one chooses a number (A) between 1 and N
player two tries to guess A choosing a ...
9
votes
7answers
1k views
Implement a Brute Force Sudoku Solver
Implement the shortest Sudoku solver using guessing. Since I have received a few request I have added this as an alternative question for those wishing to implement a brute force sudoku solver.
...
12
votes
4answers
1k views
Implement a Non-Guessing Sudoku Solver
Implement the shortest Sudoku solver.
Sudoku Puzzle:
| 1 2 3 | 4 5 6 | 7 8 9
-+-----------------------
A| 3 | 1 |
B| 6 | | 5
C| 5 | | 9 8 3
-+-----------------------
...