missionaries_game/js/game.js
// to check if a state is acceptable or not from the 'state' array
to check if a state is acceptable or not from the 'state' array
to check if a state is acceptable or not from the ' state ' array
function checkfromState() {
    for(let i = 0; i < state.length; i++) {
        if(state[i].value[0] === tracker[0] && state[i].value[1] === tracker[1] && state[i].value[2] === tracker[2]) {
            return true;
        }
    }
    return false;
}
function checkfromState ( ) { for ( let i = 0 ; i < state . length ; i ++ ) { if ( state [ i ] . value [ 0 ] === tracker [ 0 ] && state [ i ] . value [ 1 ] === tracker [ 1 ] && state [ i ] . value [ 2 ] === tracker [ 2 ] ) { return true ; } } return false ; }
to check if a state is acceptable or not from the 'state' array
to check if a state is acceptable or not from the ' state ' array