Skip to content

Project #52 of Codecademy's Full Stack Engineer Career Path

License

Notifications You must be signed in to change notification settings

AntonV0/redux-road

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Redux Road

Project #52 from Codecademy's Full Stack Engineer Career Path

By Anton Vlasenko (AntonV0)

Project Outline

Redux Road is a text-based adventure game that has taught me the core concepts of Redux, a state management tool that's used with any JavaScript framework or library.

The player can choose from various actions including "gather", "travel", "tippedWagon", "sell", "buy", and "theft". Each action changes the state, which contains the player's inventory (supplies and cash), distance travelled, and time on the road.

What I Learned

  • Defining initial state with its properties
  • Redux reducers for managing state (with switch statement cases for every action)
  • Using action.type and action.payload to trigger state updates based on user input

Please note that in each project, the first commit is always the starter code provided by Codecademy.