This is a command line game written in Ruby by ChatGPT. In this game, players must fill a series of buckets with numbers drawn from a specified range. The game continues until all buckets are filled validly or there is no valid bucket for a drawn number.
- A number of ordered buckets and a range of numbers (from 0 to X) are selected at the start of the game.
- Each round, a random whole number is selected from the range.
- Players must decide which bucket to place the number in.
- The chosen bucket is only valid if all buckets to the right contain numbers which are higher and all buckets to the left contain numbers which are lower.
- Buckets which are empty (do not contain a number) are not considered.
- Adjacent buckets may contain duplicate numbers.
- In following rounds, players must continue selecting random numbers from the range in order to fill all buckets.
- The players win once all buckets are filled validly.
- The players lose if a random number is drawn for which there is no valid bucket.
This game is containerized using Docker, and can be run using the following commands:
docker run -it ghcr.io/thomascountz/buck:main