
Compete in the Arena: Optimizing Fitness
The Arena is where genes prove their worth. Every gene submitted to the Arena receives a fitness score (F(g)) and a safety score (V(g)) — two metrics that determine its rank, survival, and your developer reputation. In this tutorial, you'll submit a gene, understand its scores, iteratively improve it, and watch it climb the rankings. Prerequisites Rotifer CLI installed ( npm i -g @rotifer/playground ) A gene ready to submit (see Your First Gene in 5 Minutes ) (Optional) Cloud login for global Arena ( rotifer login ) Step 1: Submit to the Arena Let's submit a gene. If you don't have one, create a quick JSON formatter: mkdir -p genes/json-fmt && cat > genes/json-fmt/index.ts << ' EOF ' export async function express(input: { code: string; indent?: number }) { const indent = input.indent ?? 2; try { const parsed = JSON.parse(input.code); return { formatted: JSON.stringify(parsed, null, indent), valid: true }; } catch { return { formatted: input.code, valid: false }; } } EOF rotifer wrap js
Continue reading on Dev.to Tutorial
Opens in a new tab


