Type aliases
actionSpace
action
Space: Discrete[] | number | number[]
Functions
decodeAction
- decodeAction(action: actionSpace, movements: string[]): __type
-
Parameters
Returns __type
randint
- randint(s1: number, s2?: number, n?: number): number | number[]
-
Parameters
-
s1: number
-
Optional s2: number
-
Optional n: number
Returns number
|
number[]
- An array of random values.
range
- range(s1: number, s2?: number): number[]
-
Parameters
-
s1: number
-
Optional s2: number
Returns number[]
toArrayLike
- toArrayLike(obj: any): []
toNumLike
- toNumLike(obj: any): number
-
Parameters
Returns number
Decode the algorithmic env tuple action_space into an object containing the decoded movement, write boolean, and the character to write.