3daddict / memory-match-react Goto Github PK
View Code? Open in Web Editor NEWMemory Match Game built with ReactJS
License: ISC License
Memory Match Game built with ReactJS
License: ISC License
Create a Start Game button that when pressed will populate the cards on the dom in a random order each time.
Before you begin:
Confirm that you're working on this issue so I can add assigned label.
Use dev
branch as a base for your PR.
Read the contribution guide for info how to setup project, run tests and use development version of packages.
Create a Stats Area that will eventually go in the side nav once that issue completed and is merged.
Stats Container
Refactor Card component in order to have this component more readable and scalable.
The component is located at memory-match-react/src/components/card.js
.
Make some cards to play the game to match font awesome icons. Lets start with 12 cards and 6 icons to match.
It is necessary to have a template when creating a PR
I had the following error running npm install
:
โ Error: pngquant failed to build, make sure that libpng-dev is installed.
For my system (debian 9) it was fixed by running:
apt install libpng-dev
This may also happen to Ubuntu and other linux distros. Please add it to the README.
The package-lock.json should not be in the repository. This should be add to the file .gitignore
.
Describe the bug
Number of attempts is shown twice.
Expected behavior
Please remove the
Additional context
Great for first timers please create a PR to dev
branch please ask for the task so it can be assigned to you
Adding an issue template it will make it easier for contributors to understand the need
Set up Jest in order to be able to test unit testing files in the project.
Make the game page fully responsive. Currently the cards are a fixed size with non-consistent margins.
Modify the game page to be responsive to all screen sizes.
Let's try to achieve this using pure css with Flexbox.
Additional context
Please ask for the task to be assigned the issue. Make all PR's to dev
branch.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
newRevealStates.forEach(function(el) { if (el === true) { cardsFlipped++; } else { return; } });
Build a function to check if the cards match by pairs. If they match make them disappear from the screen. If they do not match make them flip back over.
Create a layout using pure css no frameworks.
Should be create the license in order to have the project open source.
Is your feature request related to a problem? Please describe.
The game is getting quite good with respect to UI/UX, and also the score. I feel that we add more intuition into it by giving a thought about adding HighScores ๐ .
Describe the solution you'd like
There are two possible methods, but I prefer suggesting only one, let's say we are currently on a session ๐ป ie., the server is started and we're playing a game. After the first gameplay, we can store the score and call it high score. For subsequent games that are played on this session, we check with the previous score and update if higher.
Describe alternatives you've considered
Using offline ๐ text file preferably a hidden one to save all scores and checking them.
So, let's see if we can get this done.
Before you begin:
Confirm that you're working on this issue so I can add assigned label.
Use dev
branch as a base for your PR.
Read the contribution guide for info how to setup project, run tests and use development version of packages.
### Style enhancement - Responsive Layout
Create a Flexbox Layout with Side Nav, Header and Footer Section
-> You can use this as an exmaple: https://codepen.io/3daddict/pen/oaxbEw
Place Game Stats in Header
Place Buttons and create temp "#" nav links in Footer
1. Game
2. Contributers
3. Randomize Button
4. Start New Game Button
The project is currently using [email protected]
. It would be nice to implement a npm command to check the code format.
The command should be npm run lint
, and this should check the code format with the eslint library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.