r/programmingrequests • u/firework101 • Jun 23 '18
Need help building a puzzle answer page
Hello!
I make urban adventures (think treasure hunts meets escape rooms) and I had an idea for one that needs me to build a little page where players can input answers. If the answer is correct, they will move to the next page, which will display some text and images, and have a new input box where they can submit the next potential answer.
I want to build a spreadsheet with the following variables:
[Page number] [Information text and images] [Acceptable Answers]
I feel like I'm not explaining this clearly... essentially, I want to do this:
(the answer to puzzle 1 is "coffee")
Can anyone point me in the right direction? I don't even know what to google!
2
u/mrsoundstick Jun 24 '18
First of all you need to build the structure of your website, that means HTML and CSS. It shouldn't take you more than a day to make something usable even if you don't have any experience with those "languages".
Then you need to build front end logic - logic that users interact with in browser. For example, when the user hits submit answer button, you need to take input, check it and show results. This code is written in Javascript. It should not be hard to write some ugly but working code. If you use jQuery (javascript library) it will be much easier.
And finally you need back end. Its the code that runs on the server. In your case you would use it to check the submitted answer. Yes, I said that in front-end part but you cant really check the answer in front-end since the user could then just open the console and find the answers in the code - and as I said back end code runs only on the server and is "invisible" to the users. You could use PHP language since it is easy to pick up.
Some problems you will face: