A Gleam+Lustre web app for playing Cucumber and designing rule-based strategies Game description: - Each player is dealt 5 cards to play 5 rounds (also called tricks) - In a round, each player plays one card, starting with the winner of the previous round - A card at least as high as the highest so far takes control (Aces high, suits don't matter) - The last player to take control wins the round (and therefore starts the next round) - The goal of Cucumber: don't win the last round! - You get 1 point (bad) each time you win the last round Parts of the app: Cards: can be shuffled & dealt Games: rules and a log of who played which card when, visible to players & strategies Strategies: sequences of decision rules based on own hand + cards that have been played Game Table UI: hands of bots are flipped over. Game Setup UI: - Choose # of players (2-8) & which bots - Should only appear when there isn't a game started Strategy Editor UI: - Creates sequences of rules - Needs to simulate many games to compare strategies