Toby-Leeder / binarygames-frontend

MIT License
0 stars 1 forks source link

Escape Room #3

Open Azeem-Khan1 opened 1 year ago

Azeem-Khan1 commented 1 year ago

Frontend

Backend

There is not much backend data that is required for the escape room functionality itself. The most we would do is randomize the escape code each session. How we are planning on doing this is as follows:

  1. Store a list that contains each letter of the alphabet and each number from 0 to 9 (["0", "1", ... "9", "a", "b", "c" ...])
  2. Write a function that chooses a random character from the list (pretty simple stuff)
  3. Call the function 4 times
  4. Concatenate all of the results into one string
  5. Execute steps 1-4 each time the player accesses the escape room

For this escape code to mean anything, we must check if it matches the code on the rocket launcher and we must launch the rocket once they both match. This is pretty simple because we can just run a loop that checks these conditions every... let's say 1 second.