[P2] Implement Canvas-Based Combat Visualization #21

Open
opened 2026-04-07 04:00:31 +00:00 by Rockachopa · 0 comments
Owner

Paperclips combat runs on HTML Canvas (310x150 pixels, 31x15 grid). Ships use boid-like flocking behavior:

  • Ships move toward their own centroid (cohesion)
  • Ships move toward enemy centroid (aggression)
  • Ships avoid nearby enemies (separation)
  • Each cell resolves combat independently

Combat math:

  • Probe death prob = drifterCombat * (drifters/probes) * 0.5
  • Drifter death prob = (probeCombat * 0.15 + probeCombat * 0.1) * (probes/drifters) * 0.5
  • OODA Loop bonus: battleDEATH_THRESHOLD += probeSpeed * 0.2
  • Visual: unitSize = min(probes, drifters) / 100 (max 200 ships per side)

Battles named after Napoleonic Wars (Aboukir, Austerlitz, Waterloo, Trafalgar, Leipzig...).

Beacon: Adapt as Reasoning Battles - different reasoning strategies compete visually on canvas. Educational: shows adversarial testing in action.

Ref: /tmp/paperclips/combat.js (802 lines full implementation)

Paperclips combat runs on HTML Canvas (310x150 pixels, 31x15 grid). Ships use boid-like flocking behavior: - Ships move toward their own centroid (cohesion) - Ships move toward enemy centroid (aggression) - Ships avoid nearby enemies (separation) - Each cell resolves combat independently Combat math: - Probe death prob = drifterCombat * (drifters/probes) * 0.5 - Drifter death prob = (probeCombat * 0.15 + probeCombat * 0.1) * (probes/drifters) * 0.5 - OODA Loop bonus: battleDEATH_THRESHOLD += probeSpeed * 0.2 - Visual: unitSize = min(probes, drifters) / 100 (max 200 ships per side) Battles named after Napoleonic Wars (Aboukir, Austerlitz, Waterloo, Trafalgar, Leipzig...). Beacon: Adapt as Reasoning Battles - different reasoning strategies compete visually on canvas. Educational: shows adversarial testing in action. Ref: /tmp/paperclips/combat.js (802 lines full implementation)
Rockachopa added the P2gameplay labels 2026-04-07 04:00:31 +00:00
allegro self-assigned this 2026-04-07 14:08:38 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-beacon#21