'Whale, whale, whale' is the name of my first web development course project utilising basic HTML, CSS and a mix of vanilla javascript and jQuery. In brief, this is a simple memory game with marine mammals. All images are laid face down on a surface and two images are flipped face up over each turn. The object of the game is to turn over pairs of matching cards and sounds before the time runs out.
This is a fun and active way of improving your memory and concentration. Although designed for young children, adults may find it challenging and stimulating as well. It ca be employed as an educational game; thus, educators can incorporate it in their classroom delivery.
You can run the project locally by downloading or clonning the Github repo or you can view it online on Heroku.
This initial version of the project was developed within 5 days using:
- HTML5
- Javascript (ECMAScript 6)
- jQuery
- Git
- Github
- Heroku
Images and sounds courtesy of the Woods Hole Oceanographic Institute, Watkins Marine Mammal Sound Database
Several challenges have impacted the development process.
- The code can be a bit more DRY and that is a top priority. At the moment, it is a bit convoluted in certain parts, such as the card flipping function. Due to the limited timeframe, not enough time was allotted for refactoring. Likewise, the time did not permit me to dwelve into giving it a responsive design.
- It is repetitive because the shuffling function is too complex at the moment and doesn't fully work. Therefore, I have left it out of this version. To make it work, I have to scrap off the current game board approach.
- The game is yet to achieve its full educational goal.
There are many areas for improvement. In the short run, I will focus on:
REVAMPING THE ARCHITECTURE
- changing the game board coding will allow me to introduce the shuffling function
- create a responsive design to make it work on small screen devices
- add code to ensure cross-browser functionality
- random selection of images and related sounds from a larger media bank
IMPROVING UI
- The overall perception should be more game-like and the aim is to really give it a more marine/oceanic look and feel
- Remove the colors that might affect color blind players
- Add more educational content, e.g. labels for each mammal and perhaps a further info section at the end of the game
- consider adding a numeric score and a leaderboard
- add or remove rows for increased/decreased levels of difficulty
DRY CODE
- refactor, refactor, refactor