generated from Rviewer-Challenges/mouredev-memory-game
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3a5fe5f
Showing
8 changed files
with
172 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: Bug report 🐛 | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. Ubuntu 21.04] | ||
- Docker version: [e.g. Docker version 20.10.12] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Ask a question ❓ | ||
url: https://github.com/Rviewer-Challenges/mouredev-memory-game/discussions/new | ||
about: Ask a question or request support for using this skeleton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request ✨ | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**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** | ||
Add any other context or screenshots about the feature request here. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
#Jetbrains | ||
/.idea | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 Rviewer | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Memory Game | ||
|
||
Who hasn't played card games at some point? From a very young age to a beer night with friends, right? | ||
|
||
Well, for this Challenge you will have to choose your favourite theme and recreate | ||
the [famous game](https://en.wikipedia.org/wiki/Concentration_(card_game)). | ||
|
||
![Brais Moure Challenge card](moure_memory-game.png) | ||
|
||
> This is a challenge created by [MoureDev](https://www.twitch.tv/mouredev). He will review and give feedback to some | ||
> proposed solutions from the community in one of his Twitch livestreams 😻 | ||
**Surprise us! 😉** | ||
|
||
## How it works? | ||
|
||
The requirements for the game are pretty simple. First, you have to choose whatever theme you want to, like | ||
Pokémon, Star Wars or even Peppa Pig! | ||
|
||
The dynamics of the game will consist of presenting a board with a series of face-down cards and revealing all the pairs | ||
before the time is up. The user will tap on each card to turn it over and, if two of them match when they are uncovered, | ||
they will be turned face up. If not, they will be hidden again. | ||
|
||
**The game is won if all pairs are uncovered within the time limit.** | ||
|
||
So, the game will have an initial screen to select one of the three difficulties and 1 minute to solve each board: | ||
|
||
* Easy: 4x4 board | ||
* Medium: 4x6 board (or 6x4 depending on the screen) | ||
* Difficult: 5x6 board (or 6x5 depending on screen) | ||
|
||
The application will have a main game screen that contains the following elements: | ||
|
||
* Game board. The board where the user will play and see the cards. | ||
* Move counter. Every time 2 cards are turned over it will increase by 1, whether you hit or not. | ||
* Time counter. A 1-min countdown to reveal all pairs! | ||
* Remaining pairs counter. | ||
* A button to return to the level selection screen. | ||
|
||
## Technical requirements | ||
|
||
* Create a **clean**, **maintainable** and **well-designed** code. We expect to see a good and clear architecture that | ||
allows to add or modify the solution without so much troubles. | ||
* **Test** your code until you are comfortable with it. We don't expect a 100% of Code Coverage but some tests that | ||
helps to have a more stable and confident base code. | ||
|
||
To understand how you take decisions during the implementation, **please write a COMMENTS.md** file explaining some of | ||
the most important parts of the application. You would also be able to defend your code through | ||
[Rviewer](https://rviewer.io), once you submit your solution. | ||
|
||
--- | ||
|
||
## How to submit your solution | ||
|
||
* Push your code to the `devel` branch - we encourage you to commit regularly to show your thinking process was. | ||
* **Create a new Pull Request** to `main` branch & **merge it**. | ||
|
||
Once merged you **won't be able to change or add** anything to your solution, so double-check that everything is as you | ||
expected! | ||
|
||
Remember that **there is no countdown**, so take your time and implement a solution that you are proud! | ||
|
||
--- | ||
|
||
<p align="center"> | ||
If you have any feedback or problem, <a href="mailto:help@rviewer.io">let us know!</a> 🤘 | ||
<br><br> | ||
Made with ❤️ by <a href="https://rviewer.io">Rviewer</a> | ||
</p> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.