Based on the "Guessing Game" project found in the Itching for More guide by Jeremy Scott. See https://www.rse.org.uk/wp-content/uploads/2016/11/Itching-for-More-TUTOR.pdf.