From 21af3cdb9bb7522eadeafd4e3c2162af079fb0cb Mon Sep 17 00:00:00 2001 From: adam10836 <67599608+adam10836@users.noreply.github.com> Date: Wed, 21 Oct 2026 22:41:53 -0500 Subject: [PATCH 1/2] Fix BioBuzz highscores --- highscores/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highscores/lib.py b/highscores/lib.py index a6afaec..a5e2492 100644 --- a/highscores/lib.py +++ b/highscores/lib.py @@ -1080,5 +1080,5 @@ def get_game_length(game_index: str): "Push Back": submit_push_back, "DECODE": submit_decode, "REBUILT": submit_rebuilt, - "BIOBUZZ": submit_biobuzz, + "BioBuzz": submit_biobuzz, } From e0f33b9359e1bb54d08b2b2f98d0a010dd69284d Mon Sep 17 00:00:00 2001 From: adam10836 <67599608+adam10836@users.noreply.github.com> Date: Wed, 21 Oct 2026 22:53:07 -0500 Subject: [PATCH 2/2] Add Override to highscores --- highscores/lib.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/highscores/lib.py b/highscores/lib.py index a5e2492..c5849e4 100644 --- a/highscores/lib.py +++ b/highscores/lib.py @@ -298,7 +298,8 @@ def submit_rebuilt(score_obj: Score) -> Union[str, None, tuple[None, str]]: def submit_biobuzz(score_obj: Score) -> Union[str, None, tuple[None, str]]: return submit_score(score_obj, biobuzz_clean_code_check) - +def submit_override(score_obj: Score) -> Union[str, None, tuple[None, str]]: + return submit_score(score_obj, override_clean_code_check) def decode_time_data(in_string: str) -> str: @@ -551,6 +552,9 @@ def rebuilt_clean_code_check(score_obj: Score) -> Union[str, None, tuple[None, s def biozbuzz_clean_code_check(score_obj: Score) -> Union[str, None, tuple[None, str]]: return clean_code_check(score_obj, check_biozbuzz_game_settings, check_subtraction_score) +def override_clean_code_check(score_obj: Score) -> Union[str, None, tuple[None, str]]: + return clean_code_check(score_obj, check_override_game_settings, check_subtraction_score) + def extract_clean_code_info(score_obj: Score) -> tuple[str, list[str], str, str, str, str, str, str]: """ Extracts the relevant information from the clean code. @@ -859,7 +863,16 @@ def check_biobuzz_game_settings(game_options: list, restart_option: str, game_in :return: None if the settings are valid, or a response with an error message if they are not. """ if (game_index != '23'): - return 'Wrong game! This form is for BIOBUZZ.' + return 'Wrong game! This form is for BioBuzz.' + + return None # No error + +def check_override_game_settings(game_options: list, restart_option: str, game_index: str) -> Union[str, None]: + """ Checks if the OVERRIDE game settings are valid. + :return: None if the settings are valid, or a response with an error message if they are not. + """ + if (game_index != '24'): + return 'Wrong game! This form is for OVERRIDE.' return None # No error @@ -1058,6 +1071,7 @@ def get_game_length(game_index: str): "dc": submit_decode, "rb": submit_rebuilt, "bb": submit_biobuzz, + "or": submit_override, } game_to_submit_func = { @@ -1081,4 +1095,5 @@ def get_game_length(game_index: str): "DECODE": submit_decode, "REBUILT": submit_rebuilt, "BioBuzz": submit_biobuzz, + "OVERRIDE": submit_override, }