GithubHelp home page GithubHelp logo

marlatte / memory-card Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 1.16 MB

A React-built game that tests your memory. Click each card only once! Get them all without doubling and you win!!

Home Page: https://marlatte-memory-card.netlify.app/

JavaScript 64.09% HTML 2.64% CSS 33.27%

memory-card's Introduction

Hi there ๐Ÿ‘‹

I'm a front-end developer educated through The Odin Project who also enjoys:

  • Making music ๐ŸŽธ ๐Ÿฅ ๐ŸŽค
  • Designing logos and layouts ๐Ÿ–ผ๏ธ ๐Ÿ–๏ธ
  • Tearing my hair out over soccer โšฝ๏ธ ๐Ÿ›ก๏ธ

Skilled with

My Skills

memory-card's People

Contributors

marlatte avatar

Watchers

 avatar

memory-card's Issues

Implement useEffect()

Currently the program fetches its data on initial render, then cuts it down however many I set for the sample characters. Next I need it to:

  • Set the number of characters displayed by the difficulty level
  • Fetch the data asynchronously

Plan app

General Steps and Questions

Thinking in React

Starting from a mockup...

  1. Break the UI into a component hierarchy
  2. Build a static version in React
  3. Find the minimal but complete representation of UI state
  4. Identify where your state should live
  5. Add inverse data flow

This Project's goals

  • What features do you want?
  • What components does that necessitate?
  • How to structure? Where does state live?
  • How to get images/names from API?

Design

Does the app fetch everything on load or re-fetch random characters on every turn? Seems unnecessary to do it so many times. Might ask the Discord.

Add start and end modals

  • Allow game reset if a card is clicked twice
  • Start modal sets mode
  • Mode decides how many cards to display

Create React Project

  • npm create vite@latest <repo-name> -- --template react
  • git init then add and commit
  • gh repo create
  • Rm template files
  • Set up file structure
  • Add basic README and descriptions
  • Add prettier & airbnb configs: npm i -D eslint-config-prettier eslint-config-airbnb
  • Add them to eslint 'extends' (airbnb first, prettier last)

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.