December 18th, 2024

Matches: Bash game from the trenches of World War I

Matches is a strategic two-player game inspired by World War One, where players burn matches from four sets. The creator aims to enhance it with computer opponents and learned programming concepts.

Read original articleLink Icon
Matches: Bash game from the trenches of World War I

Matches is a two-player game inspired by the conditions of World War One trenches. Players have four sets of matches: Set A with 4 matches, Set B with 3, Set C with 2, and Set D with 1. During their turn, players choose a set and decide how many matches to burn, aiming to be the one who burns the last match to win. The game emphasizes strategy, as players must outmaneuver their opponent to secure victory. The creator developed this game as a proof of concept to learn about cursor manipulation, color usage, and text animations in Bash, completing it in under two hours. Future plans include enhancing the game to allow players to compete against a computer with varying difficulty levels. The creator has a personal connection to the game, having learned it from their grandfather at a young age and teaching it to others throughout their life.

- Matches is a strategic two-player game based on World War One.

- Players aim to burn the last match to win.

- The game involves four sets of matches with varying quantities.

- The creator developed the game to learn programming concepts in Bash.

- Future updates may include computer opponents with different difficulty levels.

Link Icon 2 comments
By @Etheryte - 2 months
The game is interesting, hadn't heard of it before. Regarding strategy, isn't this a solved game? As in, you could calculate every possible combination and every state should have a clear winner with optimal play, no?
By @ElCapitanMarkla - 2 months
This sounds like a variation of Nim - https://en.m.wikipedia.org/wiki/Nim