assets/codes/1010/game_array.cc
void Game1010::act(int action) {
    // get the next state
    ActionOutput ao = getAfterState(action, state);
    if (ao.valid) {
        state = getNextState(ao.afterstate);
        
        // add the score with the reward
        score += ao.reward;
    }
}
// do an action to the board
do an action to the board
do an action to the board
void Game1010::act(int action) {
    ActionOutput ao = getAfterState(action, state);
    if (ao.valid) {
        state = getNextState(ao.afterstate);
        score += ao.reward;
    }
}
void Game1010 :: act ( int action ) { ActionOutput ao = getAfterState ( action , state ) ; if ( ao . valid ) { state = getNextState ( ao . afterstate ) ; score += ao . reward ; } }
do an action to the board
do an action to the board
// get the next state // add the score with the reward