commands/play.js
/**
     * @brief This function checks the request body to see if all the valid
     *        parameters are present. The 'play' command needs a board index to
     *        be able to execute.
     *
     * @return boolean indicating the request validity
     */
@brief This function checks the request body to see if all the valid
parameters are present. The 'play' command needs a board index to
be able to execute.

@return boolean indicating the request validity
@brief This function checks the request body to see if all the valid parameters are present . The ' play ' command needs a board index to be able to execute . @return boolean indicating the request validity
function parseArgs(req) {
        let text = req.body.text;
        let args = text.trim().split(" ");
        if (args.length < 2) {
            return false;
        }
        let num = Number(args[1]);
        req.body.tttMove = num;
        return true;
    }
function parseArgs ( req ) { let text = req . body . text ; let args = text . trim ( ) . split ( " " ) ; if ( args . length < 2 ) { return false ; } let num = Number ( args [ 1 ] ) ; req . body . tttMove = num ; return true ; }
@brief This function checks the request body to see if all the valid
        parameters are present.
@brief This function checks the request body to see if all the valid parameters are present .
// Parse the 'text' field to get the /ttt arguments. // 2nd argument should be a valid number.