Skip to main content

choose_legal

Function choose_legal 

Source
pub fn choose_legal(mask: &[bool], i: u64) -> usize
Expand description

The joint action that tests and benchmarks take where the environment gives a legal action mask (row-major over the joint actions): the pattern_discrete(i, count)-th legal one (0 if none is legal), the same in every implementation.