winning-avg-corewars

Develops Redcode warriors meeting win-rate thresholds against specified opponents using iterative testing and tuning.

134|21|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/letta-ai/skills --skill winning-avg-corewars
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: winning-avg-corewars
Source: https://github.com/letta-ai/skills/tree/main/ai/benchmarks/letta/terminal-bench-2/trajectory-only/winning-avg-corewars
Command: npx skills add https://github.com/letta-ai/skills --skill winning-avg-corewars

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pmars, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured methodology to design CoreWars Redcode warriors that meet predefined win-rate thresholds against multiple opponents, including systematic hypothesis-driven testing.

Core Features & Use Cases

  • Opponent analysis and parameter extraction (step sizes, densities)
  • Strategy design and countermeasures against various archetypes
  • Systematic tuning and evaluation with test harness

Quick Start

Start with a baseline warrior, test against a set of opponents, measure win rate, and iteratively adjust parameters toward thresholds.

Frequently Asked Questions about winning-avg-corewars

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I tune Redcode warriors to achieve target win rates against specific opponents?

Tuning Redcode warriors for target win rates involves analyzing opponent strategies, extracting key parameters like step sizes and densities, selecting or designing counter-strategies, and iteratively adjusting warrior parameters while testing with pmars. Measure win rate after each adjustment cycle until you reach your threshold.

What's the best approach to systematically test CoreWars warriors against multiple opponents?

Systematically test CoreWars warriors by building a test harness with automated scripts that run each warrior against your opponent set using pmars, measure win rates, log results, and identify which parameters or strategies need adjustment. This hypothesis-driven approach lets you isolate which changes improve performance.

How do I analyze a CoreWars opponent's code to design an effective counter-strategy?

Analyze opponent Redcode source code to identify strategy archetypes, extract critical parameters like spacing and replication density, predict behavior patterns, and design targeted counter-strategies. Use this analysis to inform your own warrior's initial design and parameter selection.

Can I optimize CoreWars warriors across different core sizes and multiple opponents simultaneously?

Yes, multi-opponent optimization under realistic core sizes is supported through phase-driven development: test incrementally against one opponent, lock successful parameters, add the next opponent, and iteratively refine. This workflow prevents over-fitting to a single matchup while respecting memory constraints.

What dependencies do I need to develop and test CoreWars warriors?

You need pmars, the Redcode assembler and simulator, to assemble Redcode source files and execute battle simulations. Scripts and references are also provided to automate testing workflows and guide strategy design.

Why would my Redcode warrior fail to meet win-rate thresholds even after parameter tuning?

Common causes include strategy mismatch against opponent archetypes, suboptimal parameter choices discovered through incomplete testing, or insufficient incremental refinement cycles. Debug by isolating which opponent causes failures, re-analyze its code, and test hypothesis-driven adjustments with pmars.