Quackstrat

Quackstrat is a programming and strategy competition based on the board game Quacks of Quedlinburg. The board game is a deck-building push-your-luck game for up to 4 players, played over 9 rounds, with a lot of potential for competing strategies.

The objective of the competition is to design a strategy that performs best when pitted against all other entries in a tournament. The simulator is written in the Gleam programming language, so a little knowledge of this language - or at least the basics of functional programming - is required.

Illustrated potion cauldron surrounded by ingredient spaces

Each player is a charlatan (or "quack"), and each round they pull ingredient chips randomly from their bag and place them into their potion, until either they choose to stop or their potion explodes. There are various types of ingredient, each with different effects - potions explode when the total value of white chips (Cherry Bombs) in the potion exceeds 7, so each pull involves a calculation of risk. At the end of the round, players may buy new ingredients with the coins they earned during the round; or score victory points; or both if they stopped before their potion exploded. The more chips in the potion, the higher the rewards. Ingredients are kept, and shuffled, between rounds.

For the full rule booklet, see the PDF linked on the publisher's website. There are other game mechanics that are not explained here.

How to Enter

Learn the game, design your strategy, and submit the entry form.

To compete in Quackstrat, you will need to implement the high-level strategic decisions listed below, which will be run using the simulator.

The simulator lives at gitlab.com/quackstrat, and the interface to implement is in strategy.gleam. You may run it as much as you like and even modify it locally, but this is the reference implementation that will be used in judging strategies. It may be updated over time, but future changes should only be to fix bugs.

Pick a Chip

Decide whether the player should pull another ingredient chip from their bag.

Use the Flask

Decide whether the player should use their flask immediately after pulling a white chip (Cherry Bomb).

Ruby Actions

At the end of the round, decide whether the player use rubies to advance their droplet or refill their flask, or both.

Take Points or Buy Ingredients

When the player's potion explodes, decide whether they should score victory points or buy ingredients.

Buy Ingredients

Given the number of coins scored in a round, decide which new ingredient chips should be bought.

Crow Skull Selection

When the player pulls a blue chip (Crow Skull), decide which additional chip should they select.

Take Chip Action

Decide whether the player should perform a chip action when it is offered.

Notes on Balance

It is difficult to balance a simulated game of imperfect information such as Quacks. Games between humans are balanced because it is implausible to memorise the contents of all opponents' ingredient bags, but this is trivial for a computer program to do, so a compromise needs to be reached in the application design.

In this implementation, players are provided the following information where relevant:

Thus it is feasible to store information important to your own strategy, such as "how many Hawk Moths have my neighbours purchased?" while discouraging the approach of tracking the full game state.

Implementation Details

Some decisions have been made to limit the complexity of the simulator and strategy implementations. My apologies if you are a Quacks pro and this rules out your favourite ingredients.

FAQs

  1. Can I use an AI coding agent / LLM?

    You are recommended to build a completely human-powered submission first. Once you're happy with it, feel free to see if your AI can do better, but you must declare if a submission has had assistance from an AI tool - whether that's strategy discussion or direct code help.

  2. Can I submit multiple different strategies?

    Yes, in fact you are encouraged to do so. If you have multiple working strategies, you can test them against each other and improve their performance against smarter opponents.

  3. I need help designing a strategy to implement

    Play the real game! Either at home, on Tabletopia, or at a board game cafe.

  4. I need help with an implementation question

    Try emailing at quackstrat @ this domain and someone might respond. No promises.

  5. When do submissions open / when is the deadline?

    Now / not yet.

  6. What will the tournament format be and how does scoring work?

    To be decided.