This project is a bug fixing/feature addition challenge for Code Nation students.
Students will need to fork this repo and clone it to their machine.
Bug fixing and feature addition challenge I give to junior devs at Code Nation
You should render a restart button to the screen and create a method for handling the restart (ie - flipping all the cards back to their starting positions)
The cards will flip back automatically if we turn their flipped value to false in the state.
When flipping a non-matching pair the cards flip back before the second image is shown.
So this bug occurs when the images DO NOT match. I think simply adding a setTimeout and putting the logic inside it should work.
1000 milliseconds (1 second) on the setTimeout should be enough.
We need some text which should say whether or not a match has been found - for a good user experience.
At the moment, if it's a match it simply logs to the console "its a match", change it to make some text show on the screen.
Implement a "total number of turns" feature, which counts down for every mistake made.
If the total of turns hits zero, you should handle the game over scenario, and reset the cards.
A method for handling when a game is over/won needs to be implemented.
Instead of only 4 cards, increase the number to 16.
You will need to source images for the cards, and make sure they are rendered correctly
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.