Word Association Game - Behind the Scenes
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3Q5OCuSINW7dvKnriLlZBWfaefm1KwvpX_IPUzcZYbGbsqY7kqHlzzuGR4yIVpFftTFdCNjsGkXmzTD_mebmCuRBDkUcK6fEltnCJS5ZakmTidVeL5jy5RGIR7EXG-KZcY8W_zED9gUcsWQ12QCoy5frvicJFEw5f82SoZYaCp9PxqZJWgfYfGjlClA/w640-h287/wag.png)
This is a simple word association game. In this game there are 5 cards. Each card has four words, and two options. The task is simple: pick the word that is the most similar! One of the words is an antonym of the other, so once you know the meanings the difference should be stark. Pick the option by pressing one of the green buttons. A correct option increments the score, and an incorrect option decrements the score. Note that you can pick both options for one card (so even if you get it wrong, just press the other one to return your lost score). The frontend is based on this video , but I have modified it to use AJAX calls to the API for random questions. The API is relatively simple: it picks randomly 5 questions from a dataset of thousands of questions, and then returns the chosen ones to the caller of the API. It is written in Django and Python. To compute the dataset, and making the API lighter and faster later on rather than computing it on-the-fly – which I’ve...