This project was developed as a weekend homework assignment at Suncoast Developers Guild boot camp. It features a basic implementation of the card game with a stats counter and the ability to value aces as 1 or 11.
The latter feature requirement posed a challenge, because the value of a player's hand can be multi-fold. It was resolved by creating an array of all possible hand values, initially counting all aces in a player's hand with a value of one only.
Iterating over the number of aces in the player's hand, each time 10 is added to the previous hand's value, and the new total hand value added to the array.
That way, all possible hand value combinations are made available to the code logic to gauge whether the dealer can draw another card or the game is lost.
Likewise, the display of the multiple hand values allows the user to decide quickly whether to draw another card or not.
Visit the implementation of the card game on Netlify.
Inspect the code repository on GitHub.
The Movies of 1989 project is a simple Single Page Application written in React.js. It utilizes The Movie DB's public API for displaying movie title, synopsis and poster.
The popular 90s computer game Minesweeper implemented in React.js utilizing an existing API that accepts game moves and returns the updated minefield in the API request response.
The application recognizes, just like the original, left and right mouse clicks for revealing or flagging a field, respectively.
Special features include game stored in the browser's local storage, so that games can be commenced between browser restarts, an option to play three different game field sizes (10 x 10, 16 x 16 or 24 x 24) and display of (depending on browser width) dynamically sized flag and bomb symbols.
Play the game and inspect the source code.
Food Data Central is a clone of a web application by the US Department of Agriculture who also provide the API for searching their vast databases of food nutrition data.
The application features a dynamic page selector tab that allows for accessing adjacent as well as the first and last two pages of search results.
The Sign-Up/Login feature allows users to bookmark their favorite food items for later retrieval.
A single API is used for user sign-up and log-in,