GameDealHunt was a series of puzzles created for Easter 2015 for the /r/GameDeals community. It was devised and built in just under a week, and offered Steam keys to anybody that could complete one of the three challenge branches.
While the actual puzzles are implemented as simple HTML documents, the reddit account verification and key distribution code may be useful for others looking to implement a similar system. The answers to the puzzles are of course included too.
This project uses Reddit PHP SDK to connect to reddit.
To setup your own instance of GameDeal Hunt, you'll need a webserver with PHP and MySQL enabled.
- Under /completed/reddit-php-sdk/config.php, set $ENDPOINT_OAUTH_REDIRECT and $CLIENT_ID, and $CLIENT_SECRET to your reddit API keys.
- Under /completed/script.php, set $redditAccountYoungest to the reddit age required to take advantage of the giveaway. Configure your own database credentials under connectDB().
- This project includes an SQL file to import an empty set of users/keys to get started. Import this into your database.
Spoiler warning! This section (as well as the /trivia, /computerscience, and /math directories) include the answers to the puzzles. Only read on if you're okay with being spoiled.
Answer is visible in console tab of dev tools.
Answer is only visible from mobile devices. Can be simulated using browser dev tools.
Apply ROT13 cypher.
Page is encoded as base64 string. Can be pasted in URL bar to view.
Answer is the time as represented in a binary clock.
Answer has been appended as text file to dino.png. Visible by extracting using zip tool, read in hex editor, or simply viewed into notepad.