Questions tagged [game]
This challenge is generally based upon, related to, or simulates a game or some portion of one.
317 questions
11
votes
7
answers
739
views
On the Subject of Switches
This challenge is from a video game, Keep Talking And Nobody Explodes.
A yes or no choice isn’t too bad. Unfortunately you have to make five of them and any of them could be your last. — from the ...
4
votes
3
answers
405
views
Card-Jitsu Part 2: Make a Card-Jitsu clone
Part 1 is available here.
Card-Jitsu was a mini card-game based on Rock, Paper, Scissors available on the children MMO game Club Penguin. A lot of footage of this game is available online, and may be ...
10
votes
5
answers
756
views
Wuziqi: Connect-5 King of the Hill
Your challenge is to create a bot to play wuziqi (五子棋), also known as Gomoku in Japanese.
The game is played on a 15x15 board. Players alternate turns, and a player ...
6
votes
16
answers
2k
views
Mega Man: Powered Up
Objective
Given the name of a robot master in Mega Man: Powered Up except the trailing string Man, output the name of the robot master (again, except the trailing ...
3
votes
1
answer
177
views
Detect revokes in Jass
Jass is a trick-taking game for four players and the national card game of Switzerland. It is played with a 36-card deck, four suits each with ranks 6, 7, 8, 9, 10, J, Q, K, A. We will be using French ...
16
votes
16
answers
3k
views
Play a sequential game of Rock Paper Scissors
The "sequential" game
A number of people stand in a line with their hands hidden in a pre-chosen state of either Rock ✊, Paper ✋ or Scissors ✌️. Here's an example line:
Initial Line
✌️ ✋ ✊ ✋ ...
3
votes
1
answer
247
views
Determine the optimal blackjack move
After the success of my baccarat challenge, I figured we should try a similar challenge for another casino game, blackjack.
Blackjack is a game played with two to eight decks of cards shuffled ...
26
votes
6
answers
3k
views
How many cacti can I plant here?
Given a Minecraft terrain as a 2-dimensional array of integers or similar datastructure, determine the maximum number of cacti that can be planted on it.
The integers represent the height (y) of the ...
18
votes
16
answers
3k
views
Adversarial Iterated Prisoner's Dilemma
In this challenge, you will play the iterated Prisoner's Dilemma, but with a twist: There's also an adversary trying to mess you up!
The Prisoner's dilemma is a scenario in game theory where there are ...
21
votes
8
answers
3k
views
Do you win a Numeric Mahjong?
Background
Numeric Mahjong is a hypothetical variation of Japanese Mahjong, played with nonnegative integers instead of Mahjong tiles. Given a list of nonnegative integers, it is a winning hand if it ...
14
votes
13
answers
3k
views
Play a game of memory
Playing the game of memory against a machine is highly unfair, because they play almost as good as small children. So let's make the machine play alone, but in a fair way:
Input: 1...26 pairs of ...
12
votes
4
answers
1k
views
Optimal Duck Game Moves
How to play the duck game
This is a 2-player game.
First, we start with a line of blue rubber ducks (represented here as circles):
🔵🔵🔵🔵🔵🔵🔵
Now, in each ...
6
votes
6
answers
1k
views
Critical Calculations
Background
In the game stick ranger, there is an item which grants the character the ability to get critical hits.
Each time a projectile hits an enemy, it has some probability to be a critical hit (...
10
votes
12
answers
3k
views
Calculate Bloons RBE
In Bloons Tower Defense 6, the strength of different bloons can be measured by their Red Bloon Equivalent (RBE), or the number of single pops it takes to completely defeat the bloon.
The RBE for the ...
9
votes
5
answers
883
views
On The Subject Of Simon Says
This challenge is from a game, Keep Talking And Nobody Explodes.
This is like one of those toys you played with as a kid where you have to match the
pattern that appears, except this one is a knockoff ...