TrieNode

data class TrieNode(val parent: TrieNode? = null, val q: Int, val r: Int, val childrenIndices: MutableList<Int?> = MutableList(10) { null })(source)

Data class defining a trie node for the SymmetricPreComputedVisionTries.

Parameters

parent

The parent node.

q

The (q) component of the coordinate in the hexagonal grid.

r

The (r) component of the coordinate in the hexagonal grid.

childrenIndices

The indices of the children nodes.

Constructors

Link copied to clipboard
constructor(parent: TrieNode? = null, q: Int, r: Int, childrenIndices: MutableList<Int?> = MutableList(10) { null })

Properties

Link copied to clipboard
Link copied to clipboard
val parent: TrieNode? = null
Link copied to clipboard
val q: Int
Link copied to clipboard
val r: Int