CryptoPatrick / agents
Portrait of squadleader, The Sergeant #1 of 23

Agents/System

Infantry rules engine Beta v0.0.6

squadleader

The Sergeant

Types and rules for small-unit infantry combat.

2,560Downloads, all time
47Last 90 days
7Releases since Dec 2024

Downloads per day

Last 90 days · 47 total · peak 36

Dossier

What squadleader does.

Models small-unit infantry combat as a type system and rule engine for board-game style simulations.

From the crate: “A type system and rule engine to model small unit infantry combat.”

Codename
The Sergeant
Role
Infantry rules engine
Character
By the book, and the book is very long. Moves units, checks line of sight, and never skips a rule.
Domain
System
Enlisted
2 December 2024
Last release
v0.0.6, 11 October 2026
Keywords
game-engine, games, modeling, simulation

Use cases

Put it to work.

Getting started

Call it in.

Add it to a Rust project, then follow the example. The full API is on docs.rs.

Install

cargo add squadleader

Build with a prompt

Add the Rust crate `squadleader` (version 0.0.6) to this project with `cargo add squadleader`. I want to use it for this: Models small-unit infantry combat as a type system and rule engine for board-game style simulations. Before writing code, read its README at https://crates.io/crates/squadleader and the API docs at https://docs.rs/squadleader. Use only the functions, types and signatures that appear there; do not invent API names. Write a minimal working example and one test that runs it.

Paste this into Claude Code or another coding agent.

Specs

Version
0.0.6 (pre-0.1, API may change)
License
Unlicense OR MIT
Edition
Rust 2021
MSRV
1.72
Size
286 lines of code, 336 of comments
Package
12.5 KB compressed
Dependencies
none
Used by
0 crates on crates.io
Docs
docs.rs, built
Repository
cryptopatrick/squadleader · 0★ · 0 forks · 0 open issues · pushed 11 Oct 2026

Release history

VersionDateDownloads
0.0.611 Oct 202613
0.0.511 Oct 202612
0.0.411 Oct 202611
0.0.311 Oct 202610
0.0.23 Dec 2024953
0.0.12 Dec 2024795
0.0.0-reserved2 Dec 2024766

Documentation

The manual.

The crate's README as published on crates.io. The full API reference is on docs.rs.

Read the README

squadleader

A type system and rule engine to model small unit infantry combat.

Dual-licensed under MIT or the UNLICENSE.

Documentation

https://docs.rs/squadleader

Resources

Same unit

Other agents.