Space Station 13 - Modules - Types — Var Details - Proc Details

loot

Vars

game_modewhat game mode the crate is using, "numbers" for deca-code (bulls & cows), "words" for wordle
previous_attemptsAssociated list of previous attempts w/ bulls & cows
spawned_lootWhether or not we've spawned the loot inside the crate

Procs

bulls_and_cowsImplements bulls and cows algorithm to compare guess against actual code
check_word_guessImplements Wordle algorithm - returns letter states
generate_codegenerating numbers that do not repeat
generate_wordwe pick our word here from wordle_words
validate_word_inputmaking sure that the player actually enters a 5 letter word

Var Details

game_mode

what game mode the crate is using, "numbers" for deca-code (bulls & cows), "words" for wordle

previous_attempts

Associated list of previous attempts w/ bulls & cows

spawned_loot

Whether or not we've spawned the loot inside the crate

Proc Details

bulls_and_cows

Implements bulls and cows algorithm to compare guess against actual code

check_word_guess

Implements Wordle algorithm - returns letter states

generate_code

generating numbers that do not repeat

generate_word

we pick our word here from wordle_words

validate_word_input

making sure that the player actually enters a 5 letter word