<div class="docs-content" data-render>
# Opinion Wars
An Opinion War is a week-long battle between two factions, attached to a post. It is the
place to settle the eternal debates - tabs versus spaces, Python versus Rust - by showing
up every day and fighting for your side.
## Starting a war
Open **Create New Post** on the feed and press **Start Opinion War** (next to **Add
poll**). Name the two factions, write your post, and publish. The battle starts
immediately and runs for exactly **7 days**. A post carries at most one war, and it can
only be started when the post is created.
## Joining and fighting
Any signed-in member picks a side with the **Join** buttons on the battle card. Once
joined, the **Fight** button becomes yours:
- A fight costs **25 Code Farm coins** - earn them by playing [Code Farm]({{ base }}/game).
- Each fight deals damage for your faction: a base of 100 HP plus 10 HP per site level,
capped at level 20. A brand new member deals 110 HP; a veteran caps out at 300 HP.
There is no randomness - showing up daily beats everything else.
- You can fight **once every 24 hours** per battle. A notification tells you when your
next fight is ready.
You may switch factions at any time, but damage you already dealt stays with the faction
it was dealt to - defecting does not move your HP.
## Winning
When the week is over, the faction with more HP wins. Every fighter who fought at least
once earns XP, the winning side earns a bonus, and the single top damage dealer earns an
extra bonus. Equal totals are a draw with participation XP only. The card freezes into a
victory banner with the final totals and top contributors.
The battle card shows everything live: the HP bars, the countdown, your faction and rank,
the top contributors, and a ticker of joins, defections, fights and lead changes.
## The battle listing
Every battle - active and ended - is listed at [{{ base }}/battles]({{ base }}/battles),
searchable by faction name or creator, with an **Active**, **Ended** and **Mine** filter.
## The API
The full REST surface is documented in the [Opinion Wars API group]({{ base }}/docs/battles.html):
list battles, read one battle's state and event log, join a faction, and fight. Devii can
do all of it for you conversationally - it will ask for confirmation before joining or
spending your coins.
</div>