Text adventure game using the Collatz conjecture, in python and P5.js
-/--/--/--/--/--/--/--/--/--/-
ESCAPE FROM COLLATZ CASTLE
-/--/--/--/--/--/--/--/--/--/-
you have randomly materialized in rooom 13
You escape when you reach room 1
There is a path to get you there
That path has 9 steps
map: [13, 40, 20.0, 10.0, 5.0, 16.0, 8.0, 4.0, 2.0, 1.0]
-/--/--/--/--/--/--/--/-
step: 1
You are in room 13 , there are 2 doors
***40*****
***26*****
Please choose from the above doors. >>40
-/--/--/--/--/--/--/--/-
step: 2
You are in room 40 , there are 3 doors
***13*****
***80*****
***20*****
Please choose from the above doors. >>20
-/--/--/--/--/--/--/--/-
step: 3
You are in room 20 , there are 2 doors
***40*****
***10*****
Please choose from the above doors. >>10
-/--/--/--/--/--/--/--/-
step: 4
You are in room 10 , there are 3 doors
***3*****
***20*****
***5*****
Please choose from the above doors. >>5
-/--/--/--/--/--/--/--/-
step: 5
You are in room 5 , there are 2 doors
***16*****
***10*****
Please choose from the above doors. >>16
-/--/--/--/--/--/--/--/-
step: 6
You are in room 16 , there are 3 doors
***5*****
***32*****
***8*****
Please choose from the above doors. >>8
-/--/--/--/--/--/--/--/-
step: 7
You are in room 8 , there are 2 doors
***16*****
***4*****
Please choose from the above doors. >>4
-/--/--/--/--/--/--/--/-
step: 8
You are in room 4 , there are 3 doors
***1*****
***8*****
***2*****
Please choose from the above doors. >>1
******************
YOU HAVE ESCAPED COLLATZ CASTLE
if you need a map. https://www.jasondavies.com/collatz-graph/ is a great visualization