Statistical Dice Simulator for KCD2

This simulator can simulate thousands of turns and outputs statistical charts for each dice set.

At a glance
Statistical Dice Simulator for KCD2

Origins

Discussions around “the best dice set” in Kingdom Come: Deliverance 2 are common, but rarely supported by quantitative evidence. To address this, I developed a statistical dice simulator capable of evaluating dice sets under controlled, reproducible conditions and optimal play strategies.

Features

Scope & Constraints

The simulator currently evaluates sets of six identical dice. Mixed‑type sets are excluded because optimal play strategies differ significantly when dice have heterogeneous probability distributions.

For example:

Supporting mixed sets would require a more complex strategy engine, which is planned for future iterations.

Deterministic Simulation Framework

The simulator uses a deterministic seeding model inspired by the MIDI Machine:

This ensures that results are reproducible and comparable across runs.

Statistical Outputs

For each dice set, the simulator computes key descriptive statistics for an optimally played turn, using a strategy that scores:

The output includes:

These metrics provide a clear picture of both expected performance and distribution shape.

Optimal Passing Strategy Search

The simulator includes a mode that brute‑forces the best parameters for deciding when to pass a turn. It evaluates combinations of:

For each dice set, the simulator reports:

This allows players (or researchers) to compare strategies based on risk tolerance and desired outcome metrics.

Performance & Multithreading