function randomMove(monster) {
    let numOfMoves = monster.availableMoves.length;
    let selectedNum = Math.floor(Math.random() * numOfMoves)
    let randomTarget = Math.floor(Math.random() * currentCharacters.length);
    useMove(monster.availableMoves[selectedNum], monster, currentCharacters[randomTarget]);
}
/**
 * Finds a random move for monster to use.
 * @param {Monster} monster The currently selected monster.
 */
Finds a random move for monster to use.
@param {Monster} monster The currently selected monster.
Finds a random move for monster to use . @param { Monster } monster The currently selected monster .
function randomMove(monster) {
    let numOfMoves = monster.availableMoves.length;
    let selectedNum = Math.floor(Math.random() * numOfMoves)
    let randomTarget = Math.floor(Math.random() * currentCharacters.length);
    useMove(monster.availableMoves[selectedNum], monster, currentCharacters[randomTarget]);
}
function randomMove ( monster ) { let numOfMoves = monster . availableMoves . length ; let selectedNum = Math . floor ( Math . random ( ) * numOfMoves ) let randomTarget = Math . floor ( Math . random ( ) * currentCharacters . length ) ; useMove ( monster . availableMoves [ selectedNum ] , monster , currentCharacters [ randomTarget ] ) ; }
Finds a random move for monster to use.
Finds a random move for monster to use .