Giter Club home page Giter Club logo

webgames's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m Maciek!
  • ๐Ÿ‘€ Iโ€™m interested in coding, finances and self development.
  • ๐ŸŒฑ Iโ€™m currently learning about kotlin multiplatform capabilities.
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on applications solving common problems (eg. budgeting, time arrangement, etc.)
  • ๐Ÿ“ซ You can reach me via [email protected]

webgames's People

Contributors

bezifabr avatar

Watchers

 avatar  avatar

webgames's Issues

[Memory] Compare two flipped cards

When player flips two cards the program should compare them to check if they are pair values:

  • If they are matching the cards should disappear and increase the score.
  • If they are not matching the cards should flip back and hide their values.

It is important to unable flipping more than two cards at the same time.
This has to be done with strategy design pattern to open the functionality for future extensions.

[Memory] Make cards position fixed

The cards change their position when a pair is matched to fill the blank space after disappearing cards.
They should persist at the same position all the time.

[Memory] Separate visible text and value in card

Create a Card class with two fields (text, value) which will allow the separation of text and value on the card.

For example when you want to match not exact the same cards with similar values it is needed to display similar text but identical values. And that's why this class is needed.

[Memory] End game screen

After the game ends there should be a screen with "play again", "end" or "high score" option.

[Memory] Create top scores ranking

Top scores are a result of the score divided by number of games.
Add to the end game menu a form where the player can put his nickname assigned to his score.

[Memory] Generate the cards at the beginning

Remove the flipping cards from html file and create a function that generates the cards on the board.

For now the game allows to play with fixed number of 12 cards (4x3).
Make the number of cards flexible and open for extensions. Use the strategy design pattern.
In final version there is going to be an option to choose difficulty level (number of cards).

[Memory] Add cards values generator

Create cards values generator.
It should generate values and assign them to pairs of cards.

This has to be done with strategy design pattern to open the functionality for future extensions.

[Memory] Fix bug with revealing animation

When you click randomly on the cards and you choose the third card it will reveal and hide instantly.
It is because all the revealed cards have to hide at the same moment.

Flipping cards should be locked during the compare of the cards.

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.