Policy

fun interface Policy<View, Move>

A generic bot/agent policy: given a redacted View of an opaque game state and the concrete legal Moves, choose one. Domain-agnostic — knows nothing about any specific game's types.

Functions

Link copied to clipboard
abstract fun decide(view: View, legal: List<Move>): Move