Questions tagged [board-game]
for challenges involving board games.
76
questions
17
votes
4
answers
647
views
Complete the landscape
Carcassonne is a tile-based game, where the objective is to construct Roads, Cities and Monasteries, in order to score points. The game works by players taking turns to draw and place tiles to ...
21
votes
10
answers
3k
views
Totally random Catan number distributions
I like to play (The Settlers of) Catan on Board Game Arena with totally random number tokens. These tokens determine the production rate of the terrain tiles beneath:
There are 18 number tokens, two ...
12
votes
8
answers
819
views
Count the Liberties - Advanced
Here's an advanced version of the Count the Liberties challenge.
The definitions of the terms liberty and group are the same as the previous challenge, so have a look at the previous one for details, ...
9
votes
2
answers
541
views
The maximum liberty of a group on a Go board
Bounty
One of the convincing conjectures, by Loopy Walt is,
...
15
votes
9
answers
955
views
Count the Liberties
Background
This challenge is about the game of Go. Go is a game played on a board with a square grid N x N. You don't have to know how to play the game to do this ...
6
votes
2
answers
378
views
Reveal all clues of Black Box
Black Box is a board game, Your task is to reveal all clues.
What is black box
Black box is a board game with hidden atoms, Your task is given input, All atoms, reveal all clues.
I/O
Input
The atoms ...
9
votes
1
answer
358
views
Universal Command Sequence
Universal Command Sequence
Definition
An \$n\$-maze is a \$n\times n\$ chessboard which has "walls" on some edges, and a "king" on the board that can move to the 4 adjacent cells, ...
15
votes
0
answers
546
views
Play Thud! (Troll Edition)
Key Links
Dwarf question
Chat room
Game
Controller Interface
Troll league table
...
18
votes
0
answers
586
views
Play Thud! (Dwarf Edition)
Key links:
Troll question
Chat room
Game
Controller Interface
Dwarf league table
...
15
votes
1
answer
461
views
Score a 1 player game of Carcassonne
Carcassonne is a tile-based game, where the objective is to construct Roads, Cities and Monasteries, in order to score points. The game works by players taking turns to draw and place tiles to ...
3
votes
0
answers
144
views
Chinese checkers adjacent squares [closed]
Challenge
You have a Chinese Checkers board looking like this:
...
10
votes
1
answer
271
views
Count the Shantens
Introduction to Mahjong tiles
Mahjong (麻雀) is a board game that originates from China. Mahjong tiles used in this challenge are in Unicode points U+1F000 – U+1F021:
...
7
votes
2
answers
959
views
Farkle Fest 2k19: An AI dice game tournament
Farkle Fest 2k19
In this challenge, we will be playing the semi-popular dice game Farkle.
Farkle is a dice game that has players selecting to save dice or risk rerolling the die for more points to ...
-1
votes
1
answer
523
views
Pandemic Outbreak Calculator [closed]
In the board game Pandemic, an outbreak occurs when a city contains more than 3 disease cubes. When the outbreak occurs, any disease cubes in the city in excess of 3 are removed, and each city ...
3
votes
1
answer
626
views
Shortest Gomoku (5 in a row) implementation [closed]
I suspect Gomoku may be one of the simplest games to implement in code. https://en.wikipedia.org/wiki/Gomoku The game is this: players BLACK and WHITE take turns putting down black and white stones. ...
11
votes
1
answer
522
views
Implement MENACE
Background
MENACE (Machine Educable Noughts And Crosses Engine) is a rudimentary shallow machine learning algorithm for the game Noughts and Crosses, created by British computer scientist Donald ...
48
votes
8
answers
3k
views
N-movers: How much of the infinite board can I reach?
Single moves
The board is an infinite 2 dimensional square grid, like a limitless chess board. A piece with value N (an N-mover) can move to any square that is a distance of exactly the square root ...
37
votes
3
answers
2k
views
Connect 4: Spot the Fake!
The bank has been broken into, and all the local mafia thugs have an unusual alibi: they were at home playing Connect 4! In order to assist with the investigation, you are asked to write a program to ...
8
votes
3
answers
714
views
Partially-Observable Connect-4
The Game
You will be playing an (almost) standard game of Connect-4. Unfortunately, it is a correspondence game and someone has placed black tape on every second row starting from the bottom, so that ...
10
votes
1
answer
812
views
KoTH: Gomoku (Five in a row)
Gomoku or Five in a row is a board game played by two players on a \$15 \times 15\$ grid with black and white stones. Whoever is able to place \$5\$ stones in a row (horizontal, vertical or diagonal) ...
11
votes
2
answers
1k
views
Camel Up Cup: An AI board game tournament
Camel Up Cup 2k18
In this challenge, we will be playing the semi-popular board game Camel Up.
Camel Up! is a board game that has players betting on camels to win rounds, win the game or lose the game, ...
48
votes
56
answers
5k
views
Scrabble scorer
Challenge:
Take a string of upper or lower case letters as input (optional), and calculate the score that string would get in a game of Scrabble in English.
Rules:
The score of each letter is as ...
9
votes
2
answers
735
views
How many draws are there in Quarto?
Introduction
This challenge is similar to Project Euler problems. I came up with it because I was playing a deceivingly simple board game and couldn't come up with an efficient solution to answer a ...
14
votes
4
answers
1k
views
Play tic-tac-toe and never lose
(There exists some challenges that require to use the best strategy, but here we don't. Even if you are able to win, you are allowed to make a tie)
Challenge
Write a program which plays the game tic-...
21
votes
11
answers
4k
views
Where can the knight be in N moves?
This is Hole-3 from The Autumn Tournament of APL CodeGolf. I am the original author of the problem there, and thus allowed to re-post it here.
Given:
a number of turns (please state if no movements ...
10
votes
3
answers
659
views
Exact Cover Puzzle
CHALLENGE
Given a set of grouped letters, arrange them onto the board so that they cover the area entirely.
Board Representation (a.k.a. the SHIP DECK)
The board is a 6x6 grid.
There will always be ...
15
votes
17
answers
3k
views
Tic-Tac-Toe - X or O?
Background
Skip to "Task" if you are familiar with Tic-Tac-Toe (I think most are!)
Tic-Tac-Toe is a famous two-player game. It consists of a 3x3 board that is filled gradually by two players ...
20
votes
22
answers
2k
views
Build a checkerboard
For this challenge you will print the coordinates and color of each piece at the start of a game of checkers.
Enter the x and y (comma seperated) for every square (indexed 0-7) on a checkerboard, ...
23
votes
14
answers
5k
views
Can I Settle Down?
In The Settlers of Catan board game, there are five resource types: Brick, Log, Ore, Wheat, and Sheep. Building a settlement costs a Brick, a Log, a Wheat, and a Sheep. However, you can also trade in ...
27
votes
22
answers
6k
views
Is it a good 2048 board?
This is my first question here, so any suggestions in the comments would be appreciated! Thanks ;)
Introduction
One very common strategy for the 2048 game is never ever swiping down. This positions ...
12
votes
6
answers
1k
views
Let's play Rummikub!
Note: This is related to a variation of the game Rummikub
Background & Rules
Rummikub is a tile-based game. There are four colors: red, orange, blue and black. For each color there are 13 tiles (...
2
votes
0
answers
1k
views
Create a simple mancala game [closed]
Simple Mancala Game
Create a mancala game using as few bytes as possible.
The game
Mancala is a family of games where a player has a control over a set amount of pots filled with stones/seeds. The ...
2
votes
0
answers
71
views
Score a hand of Cribbage! [duplicate]
Goal:
Given a hand of 5 cards, determine its value in the game Cribbage.
Input a string through any reasonable means. You can assume the string will always be in this format:
...
24
votes
3
answers
7k
views
Print a Sorry Board
I was just playing the board game Sorry! with some people, and I realized that I could base a few interesting challenges off of it. This one is pretty simple.
You task is simply to output an ascii-art ...
4
votes
3
answers
432
views
It's Your Turn ! (Renju)
EDITS:
Added link to the plain-text (multiple strings) test data
Added BLANK,EDGE and TIE2 test cases (see Test Data section) (11/25)
Updated the JSON test cases (some lines were ill-formatted) (11/...
39
votes
29
answers
7k
views
Take a ride on the Reading, If you pass Go, collect $200
Monopoly Board
For this code-golf challenge we will be building the board game Monopoly.
Rules:
Take no input.
Output a 11x11 board where each ASCII character forming the board is the first letter ...
12
votes
1
answer
455
views
Checkers: King Me?
Challenge:
Given a checkerboard, output the smallest amount of moves it would take (assuming black does not move at all) to king a red piece, if possible.
Rules:
Red's side will always be on the ...
12
votes
3
answers
418
views
Where can the cannon go?
Introduction
The game of xiangqi, also known as Chinese chess, is a chess-like game
popular in China, Vietnam, Taiwan, and other East Asian countries. The colours
of the two sides in xiangqi are red ...
18
votes
2
answers
607
views
What's your next move?
This challenge is to write a minimax function in a language of your choice, to output the next best move in an NxN game of tic-tac-toe given the current board state. The board input can be accepted as ...
32
votes
23
answers
16k
views
Draw an Empty Scrabble Board
A standard Scrabble board is a 15×15 grid of spaces to place letter tiles. Most of the spaces are blank but some are double word scores (pink), triple word scores (red), double letter scores (...
11
votes
5
answers
547
views
Evaluate a Stratego Battle
In the game Stratego, the main game mechanic is when you attack an opponent's piece with yours. In this challenge, you job is to simulate one of these battles and say who survives.
Specs
You will get ...
10
votes
4
answers
719
views
Winnable Solitaire Mancala Boards
Mancala is the name of a family of board games that usually involve a series of cups filled with beads that the players manipulate. This challenge will use a specific rule set for a solitaire variant ...
21
votes
4
answers
1k
views
Count Mills in Nine Men's Morris
Introduction
Nine Mens's Morris (also called Mills) is a board game for two players which is played on the following board (image taken from the linked Wikipedia-page):
Each player has 9 men, colored ...
11
votes
2
answers
440
views
Let's play some boardgame!
Introduction
Boardgames are a classic play between kids, but there are some kids that feel bored playing a boardgame step by step. Now they want the result to be shown before they put their hands on ...
19
votes
5
answers
2k
views
Play Antichess!
https://en.wikipedia.org/wiki/Losing_chess
This is basically Chess Tournament, but for antichess ;)
Antichess is one of the many chess variants that have been invented. The goal is to lose all your ...
19
votes
12
answers
2k
views
Connect-n time!
https://en.wikipedia.org/wiki/Connect_Four
Does anyone remember the 2 player game connect 4? For those who don't it was a 6x7 board that stands vertical on a surface. The goal of connect 4 is to, ...
16
votes
25
answers
2k
views
Number of pieces on a checkers board
Introduction
A normal checkers board contains 8 x 8 = 64 squares:
You can see that in total, there are 12 white pieces. Black and white always have the same amount of pieces. If there are any more ...
16
votes
4
answers
1k
views
Can you win with two more moves at Three Men's Morris?
Bounties
No. 1 (awarded)
I'll throw in 50 rep for the first valid answer
No. 2 (awarded)
I'll throw in another 100 rep for the shortest valid answer.
No. 3 (open for submissions)
I'll ...
20
votes
1
answer
928
views
Determine winner of Connect 4
You are given a partially filled Connect 4 grid (7x6).
O X
O X
X O X O O
X O X O X X
O X X X O O X
O O O X X O X
(Input can be given ...
7
votes
2
answers
320
views
Simple single-player board game, expected score distribution
This is the first problem I've posted here; please post criticisms in comments.
Summary
A game board consists of a starting space, an ending space, and between them are ...