Anti-cheat engineering, part two - Internet Explorer
Address
https://freetolearn.world/anti-cheat-engineering-part-two.html
free to learn.world
← Course Directory

Terminal project · 6 units · Free

Anti-cheat engineering, part two

Put two small games behind a server and defend them against clients that lie, measuring what each defence costs legal players.

Get the course on GitHub

You don’t need part one first, because this course restates each idea it borrows from part one where it uses it.

What you’ll learn
Server-side input checks, hiding state the client doesn’t draw, a detector tuned on some sessions and measured once on others, latency windows and crash-safe trades.
Your project
A defence for Lob, a small artillery game, and part one’s courier arena, scored by one command against the course’s cheating clients and model players.
How you’ll work
6 units, numbered 12 to 17 after part one’s eleven · 34 checks. Predict before you run, then write each unit’s code and check it with Node.

What you’ll build

  • A server for Lob that admits only a version, a sequence number, an angle, a power and “fire”, records each session and replays it, and sends each client only what its screen draws.
  • A detector for clients that aim with legal inputs. You set its threshold on development sessions, freeze it and measure it once on held-out sessions. Its findings are advice for a person, and nothing in the course bans anyone.
  • A latency window for the courier game, a trade recovery that keeps every item in exactly one inventory through a crash, and a scoreboard that marks each of your budgets PASS or MISS.

Both games are the course’s own. Lob is the game the Sightline course works out from the outside, and the two courses are a pair so each side can be measured against the other. You don’t need Sightline either. If you took it, lesson 17 has an optional exercise for your engine.

Before you start

You write JavaScript modules, and you should be comfortable with medians and quartiles. The lessons define the rest, such as recall, false positive rate, precision and the median absolute deviation.

The course asks for Node 22 or newer. It was tested with Node 26.5.1 on macOS, from a fresh clone with an empty environment. There’s nothing to install, and no account, network connection or paid service.

The course covers defence only, on its own two games. The legal players are models written for the course and the network is simulated, so a detector that flags none of them hasn’t been shown to flag no people. Three AI learners finished all six units from a fresh copy. No person has taken the course yet, and the author’s planning outline guessed 25 to 35 hours.

Clone and start

Clone the learner source, check out this edition and enter the course folder.

git clone https://github.com/itsHabib/free-to-learn.git
cd free-to-learn
git checkout f2c2180e1ad0bfdfe3edaee00f62b6d349f754fc
cd courses/anti-cheat-engineering-part-two

Read lessons/12.md before creating a project. Its section “Choose your starting point” gives the two routes below.

Choose one route. Each makes a new folder named project and refuses one that exists, so do not run both.

Type in the important parts: write the unit’s code from listings the lesson prints in full.

node examples/start-chapter.mjs project write
node lab.mjs check project 12

This first check fails with “not written yet” until you write the code.

Start from working code: read the supplied code with the lesson’s tour.

node examples/start-chapter.mjs project supplied
node lab.mjs check project 12

This first check passes because the unit’s code is supplied; each check’s record names the route it started from. Both routes lead to a new application you write yourself. node lab.mjs init project is a blank start with none of the supplied code; use it instead of a route, not before one.

Lessons ask you to predict before you run something, with node lab.mjs predict project 12a YOUR_ANSWER.

The lab keeps a record of every check, prediction, freeze and held-out run in project/attempts/ and never overwrites one. node lab.mjs status project lists them in order.

Passing the checks shows your code meets the contracts in API.md on the checks’ cases and that your defence meets the scoreboard’s budgets. It doesn’t show that you learned what the lessons teach.

Exact learner source

The commands above use learner edition f2c2180e1ad0bfdfe3edaee00f62b6d349f754fc. This static page doesn’t run or grade code.

Browse this exact course source

Give site feedback →

Course overviewInternet
Mission.txt - Notepad

Learning without paywalls.

Find what people pay to learn.
Build a great course. Give it away.

One course at a time.

Usage & privacy

Start