apply

fun apply(state: LudoState, action: LudoAction, random: Random = Random.Default): LudoState?

Applies action if it's legal right now; returns null (and changes nothing) otherwise.