^ how does AI play cards? ^ cannot be brute force
function update(state, message) {
switch(action.type) {
case PACMAN_MOVES:
/* ... */
default:
return state;
}
}
const message = {
type: PACMAN_MOVES,
direction: 'left'
};
const state = {
pacman: {x: 1, y: 0},
red: {x: 0, y: 2}
};
const list_of_actions = [
createAction_movePacman('left'),
createAction_movePacman('right'),
createAction_movePacman('right')
];
const initial_state = {
pacman: {x: 1, y: 0},
red: {x: 0, y: 2}
};
list_of_actions.reduce(update, initial_state);
- http://aigamedev.com/open/coverage/mcts-rome-ii/
- https://chessprogramming.wikispaces.com/Monte-Carlo+Tree+Search
- https://pathak22.github.io/noreward-rl/