A React/Redux Labyrinth game, where the player follows a history and chooses a path until the end of the labyrinth. This project was made by pair-programming.
- Use of different React components
- Use of Redux and Redux toolkit
- Asynchronous API calls using thunks
- Use of hooks: useSelector, useDispatch, useState
- POST request with information on the body
- Responsive styling
- Styled components
- We started by planning the projects and it’s components / screens.
- We made thunks for the asynchronous functions, such as the API post request to display the game steps and the loading component. There’s also local storage to store the player’s position on the game.
- We used conditional rendering to be able to show different screens based on the game conditions.
- We created a final page that display the players choice history for the whole game. giThere’s also a restart button that reloads the game and empty the username field.