⚔ Boolean Battle ⚔

Write conditional logic to defeat your opponent

Player 1

❤️ 20 HP
🛡️ 0 Shield

Player 2

❤️ 20 HP
🛡️ 0 Shield

Player 1's Turn

Execution Log

Game log will appear here...

Active Statements (0)

No statements yet

How to Play Boolean Battle

Objective

Reduce your opponent's HP to 0 by writing conditional statements that execute based on the game state.

Starting Conditions

Both players start with 20 HP and 0 Shield. Use the coin flip to determine who goes first.

Turn Structure

On your turn, create a conditional statement with three parts:

Alternatively, you can skip your turn to re-evaluate all existing statements without adding a new one. This allows you to set up recursive loops where the same player can have multiple statements execute in sequence.

Non-Linear Execution

After each turn, ALL statements from both players are re-evaluated. This means:

Shield Mechanics

Shield protects HP from damage and can be gained through healing overflow:

Skip Turn

Either player can skip their turn to re-evaluate all statements without adding a new one. This is crucial for:

Strategy Tips