Coder Social home page Coder Social logo

vanessasue27 / project-labyrinth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from technigo/project-labyrinth

1.0 0.0 1.0 6.63 MB

Project Labyrinth for the Technigo Bootcamp: A text-based maze game ๐Ÿคฏ built with React Redux, thunks and styled with Styled Components ๐Ÿ’… Pair-programming app built by: Destiny Lindgren and Vanessa Sue Smith ๐Ÿ’ชโš›

Home Page: https://unruffled-bhabha-8db7f5.netlify.app/

HTML 7.33% JavaScript 91.58% CSS 1.09%

project-labyrinth's Introduction

Project Labyrinth

This project's goal is to build a text-based Maze Game adventure ๐Ÿ’ฅ: Using React Redux and thunks. The game presents the user with a description of where they are and provide several alternatives about what they can do next. Based on their choice, the state of the game is updated; then, a new description and set of actions can be displayed to the player ๐Ÿ’ชโš” Pair-programming project built by: Destiny Lindgren and Vanessa Sue Smith โœŒ

How we Built it - What we Learned

  • This game is built by communicating with the Backend, so the first step was to understand the data we got back when doing our fetches: for this we used Postman to test out the game several times and understand what the flow of the game is supposed to be.
  • We start the game by letting the player create a Username which we stored in Redux's global store. With this data, we can now perform our first POST request which provides us with the first set of instructions to give the player.
  • Once the player chooses an action, a new POST request is triggered which provides the Backend with data on the direction in which the user wants to move and then generates a new set of instructions which we can show the user.
  • The flow remains the same until the player reaches the end of the game. Each request to the Backend is performed via a thunk which performs the fetch + gathers the response data + passes that data to one of our reducers in our Redux store + and this reducer then saves that data into our global store, becoming our current game state.
  • This project was a great opportunity to solidify React Redux concepts and put them into practice. Doing it in pairs, it became clearar what the flow of React Redux is, step by step and what connects with what ๐Ÿง
  • We also had a lot of fun styling this project using Styled Components: especially since we challenged ourselves to try out some reusable components and also do some conditional styling with props: for example the Go Back button which will change color or be enabled depending on the state of the history component in our Redux global store ๐Ÿ’…

View it live

Try out out RETRO MAZE GAME! ๐Ÿ•น Press Start here: https://unruffled-bhabha-8db7f5.netlify.app/

project-labyrinth's People

Contributors

puj avatar vanessasue27 avatar

Stargazers

 avatar

Forkers

destinyleia

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.