Learn R Programming

riceware (version 0.4)

check_token: Check the Token

Description

Checks the validity of the token.

Usage

check_token(token)

Arguments

token
a character vector of length 1 representing the outcomes of 5 rolls of a dice.

Value

TRUE if correctly formatted, FALSE otherwise.

Details

The token is a 5-digit number representing the outcomes of 5 rolls of a 6-faced dice. The function returns TRUE if the token is correctly formatted and FALSE otherwise.