Code Monkey home page Code Monkey logo

memo-test-game's Introduction

Memo Test Game

A memo test game developed using NextJS, React and Tailwind CSS.

๐Ÿ“ Requirements:

This game will be composed of a few pages:

Home:

Simple list of memo tests with a button โ€˜Startโ€™ to start a new session for that memo test or โ€˜Continueโ€™ to continue an already created and unfinished session stored in some front-end storage

  • The list of memo tests should display the highest score that was reached in some of the sessions for that game
Solve memo test (session):

A page containing a list of images (2 copies per image) hidden with a number sorted in random order

  • In the beginning, you will see a covered card with a number. The user will be able to click on any card to uncover the image (it should have some animation) and will be able to uncover two at a time
  • If they are the same image, they should remain uncovered for the rest of the session
  • If they are different, they both should flip again to the black card with the number
  • Each time a pair of cards is selected the retries in the session should be updated
Score:

Once all pairs have been uncovered the session should end and show a score calculated like this: score = (numberOfPairs / retries) * 100 and a button to return to the Home

The information of an ongoing session or the highest scores per game should persist if there is a browser refresh.

๐Ÿ› ๏ธ Installation Steps:

1. Install dependencies

npm install

2. Create an .env.local file in project root using .env.example

cp .env.example .env.local

3. Run server

npm run dev

๐Ÿ“• Storybook

1. Run storybook

npm run storybook

2. Go to

http://localhost:6006/

๐Ÿ’–Like my work?

Feel free to reach me out - [email protected]

memo-test-game's People

Contributors

nachocapodanno avatar

Watchers

James Cloos avatar  avatar

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.