GithubHelp home page GithubHelp logo

technigo-14-20-labyrinth's Introduction

Project Labyrinth ๐ŸŽฎ

This week we were doing a pair-programming project and the assignment was to build a Labyrinth game in React Redux fetching the data from an API. The group contained of Anna Hellqvist and Agnes Harrysson Hansson.

Learning Objectives โœ๏ธ

How to structure the Redux store to suit the data

How to send JSON in the body of a request

How to make API calls with Redux using thunks

Pair-programming

Tech ๐Ÿ’ป

REACT

Redux

Styled Components

API

The problem

We started to build our store and planning what components we were about to use and how to structure the project. In our project we decided to create the fetch outside the reducer in a separate js file where we also stored the thunk.

In our APP.js we added localStorage which makes it possible for the user to revisit the site and start where they left. We also used conditional statements to render the content on the page, loaders to be shown when we are waiting for the fetch to finish. The conditional statements were also used to show the journey the user has taken, to show a restart game button on the last page, and also to remove the start-page (startControls.js) when the game is started.

๐ŸŽจ To style the page we decided to use styled components and also to import createGlobalStyle to style the body.

If we would have had more time we would have spent it on trying to implement a map which visually shows the journey the user has taken and also to style each room based on description ๐Ÿ—บ๏ธ.

View it live

https://project-labyrinth-game.netlify.app/ ๐ŸŒŸ

technigo-14-20-labyrinth's People

Contributors

annahellqvist avatar aagneshansson avatar puj avatar

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.