RPSLS-Simulation

An emergent RPSLS simulation with animated emoji entities, showcasing dynamic group behaviors and continuous evolution on an HTML5 Canvas.

RPSLS-Simulation

🥳 Recently updatedJavaScript

An emergent RPSLS simulation with animated emoji entities, showcasing dynamic group behaviors and continuous evolution on an HTML5 Canvas.

RPSLS-Simulation

This started as a way to test the early coding models. The brief was simple: build RPSLS as a simulation. What came out is an emergent population sim where emoji entities flock, collide, and convert each other on an HTML5 canvas.

What's in the box

  • Vanilla ES6+ JavaScript on three stacked canvases: simulation, graph, stats.
  • An entity model with type, health, age and a group ID.
  • A `CONFIG` object tuning speeds and damage cooldowns. Nudge one number and the whole sim rebalances.

The data path

The data path runs at 60 FPS: physics, collisions, group dynamics, then a draw. On collision the RPSLS table names a winner. If the winner's group has room it absorbs the loser's health; otherwise the loser converts and joins. Groups cap at seven. Bigger flocks just blur into one blob, so I kept the split.