select_new_state: Select New Bridge State
Description
Selects a new state from candidate states that is close to an opposite
state (by Manhattan distance). Randomly picks from the top 10 closest.
Usage
select_new_state(target_all, opposite_state, method = "manhattan")
Value
Integer vector of the selected state
Arguments
- target_all
Data frame of candidate states
- opposite_state
Integer vector, the state to be close to