xhash {tictactoe} | R Documentation |
Create Hash Table for Generic Keys
xhash(convfunc = function(state, ...) state, convfunc_vec = function(states,
...) unlist(Map(convfunc, states, ...)), default_value = NULL)
convfunc |
function that converts a game state to a key.
It must take a positional argument |
convfunc_vec |
function for vectorized conversion from states to keys.
This function must receive a positional argument |
default_value |
value to be returned when a state is not recorded in the table. |
xhash
object