Summer 2015, I started getting passionate about how I could use advertising to support charity. After trying to build an alarm clock that woke people up with video ad’s, I decided to make a mobile trivia game. I took an archive of Jeopardy Questions and filtered out all answers that were not four letters long. Ads only appear if you run out of points. Points are gained by typing in the answers correctly. Points are used to buy hints, which give you one of the letters needed for the correct answer.
I believe it would be tedious to serialize & deserialize the contents of what letters are on the screen every time you open the application. To solve this, I just came up with a function that would determine weather to display the letter, given some deterministic properties about the question. This is demonstrated in the named function ‘shouldUse’: