Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Commit

Permalink
[SHEPHERD] Add example game values into runtime (#559)
Browse files Browse the repository at this point in the history
* [SHEPHERD] Add example game values into runtime

* [RUNTIME] Bump version number

* Remove decode_message test

* [RUNTIME] Fix setting resulting challenge code
  • Loading branch information
brandonxxlee authored and bodiddles committed Mar 15, 2018
1 parent d568296 commit 94eeb79
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
2 changes: 1 addition & 1 deletion runtime/runtimeUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RUNTIME_CONFIG(Enum):
TEST_OUTPUT_DIR = "test_outputs/"
VERSION_MAJOR = 18
VERSION_MINOR = 2
VERSION_PATCH = 3
VERSION_PATCH = 5

@unique
class BAD_EVENTS(Enum):
Expand Down
6 changes: 3 additions & 3 deletions runtime/stateManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def init_robot_state(self):
"buttons": {0: True, 1: False, 2: True, 3: False, 4: True}}}, t],
"team_flag_uid": [None, t],
# Solar Scramble Keys
"gamecodes": [[1, 0, 0, 0, 0, 0], t],
"gamecodes_check": [[4312, 0, 0, 0, 0, 0], t],
"rfids": [[1, 0, 0, 0, 0, 0], t],
"gamecodes": [[64314, 64314, 64314, 64314, 64314, 64314], t],
"gamecodes_check": [[1543, 3215, 2551, 5354, 1152, 2222], t],
"rfids": [[6, 1, 3, 5, 2, 4], t],
}

def add_pipe(self, process_name, pipe):
Expand Down
3 changes: 1 addition & 2 deletions runtime/studentAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ def decode_message(self, rfid_seed): # pylint: disable=too-many-locals
solution = int(final_output)

if check_challenge_code == solution:
self.to_manager.put([SM_COMMANDS.SET_VAL,
[solution, ["hibike", "devices", index % 3, "code"]]])
self._set_sm_value(solution, "hibike", "devices", index % 3, "code")
return True
return False
6 changes: 0 additions & 6 deletions runtime/studentCode.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,6 @@ async def asyncSleepHelper2(sleepTestVal):
await Actions.sleep(.5)
sleepTestVal['test'] = False

def decode_setup():
print(Robot.decode_message(1))

def decode_main():
pass

###########################
# Solar Scramble Functions
###########################
Expand Down
8 changes: 0 additions & 8 deletions runtime/test_outputs/decode_output

This file was deleted.

0 comments on commit 94eeb79

Please sign in to comment.