wgil / memory-game Goto Github PK
View Code? Open in Web Editor NEWA memory game using ReactJS
A memory game using ReactJS
The moment the user clicks the first card, the timer should starts.
The moment the user clicks the last card, the timer should stop.
Remember to show it in the Menu and at the end of the game.
Improve its styles.
Grid CSS is the key.
Fix Firefox styles.
When you start the game on a mobile phone in portrait mode, you can see a screen indicating that you have to rotate your phone to be able to play the game.
Users have reported that opening the game on an Iphone, they just see a blank screen. ๐
To solve this issue, you first have to make a little research to know exactly which browsers are affected๐ง. Currently, we are using the Screen.orientation
property to detect the orientation device and the orientationchange
event to hide/show the Game. You can find this logic in src/containers/Orientation.js
.
I am not pretty sure how to approach this issue, probably we can create a polyfill or simply get rid of Screen.orientation
and make use of resize
and make it work in certain breakpoint Any suggestion would be appreciated. ๐
Make the restart button works from the menu.
Add a CI to run the test suite on every pull request. It could be great opportunity to add the coverage to the project and a badge in the readme file.
On every played card, we should check if there still are more cards to play. We can create another piece of state to keep this count so we don't have to traverse the whole array cards every time and just compare both array lengths.
If there are no more cards to play: Show an end of game component with a message and a button to play the game again.
By the time, the Card
component is using styled-component as well as styles on a separated stylesheet.
The goal of this task is to merge all styles of the Card on the Container
styled-component definition inside that the Card.js
component file.
Arrow keys should be used to move through the board and the space button should make the cards flip.
Add a style to the card when it gets focus.
Every time the game starts, the cards should be shuffled.
Add styles to the component and move it to the center of the screen, use grid-css to do this.
The screen should have instructions and a button to start the game.
Clicking a card should make it flip, animate it and update its flipped
prop.
I think that deleting paired cards would make the others to move from its place, this should not happen.
Pass down the played state to the card at the bottom. If the card is already played, add a cool style to disappear it! Bonus point for animations :-)
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.