Giter Site home page Giter Site logo

match-game's Introduction

screenshot Matching card game Instructions: We’re looking for two hours of your best work in implementing a solution for the exercise below. Feel free to use what you most feel comfortable with. Part 1: Build an interactive application that let’s a single player match sets of 2 cards in a matching game. Requirements: ● The game consists of a regular 52 card deck ● To start a game, the cards are randomly shuffled and placed on a game board ● A user can: ○ turn cards over ○ choose 2 cards per “turn” from the board ■ if the card values match (ignoring suit), the cards are removed from the game board ■ if not, cards are returned to the game board in their previous positions ○ view successfully matched pairs of cards ○ can count how many matched pairs they have found ● Other requirements ○ The cards on the board maintain their initial location on the board when other cards are removed ○ Game completes when all pairs have been found Part 2: Integrate a 2 player turn based system with a “computer” player. Requirements: ● The game can distinguish between the turns of two players ● The game keeps a count of the matched pairs for each player ● A single user’s turn may continue if they successfully match a pair ● The computer can: ○ select cards from the board ○ “remember” the values of cards that have previously turned over ○ choose cards off the board based upon it’s knowledge of the board

This project is generated with yo angular generator version 0.11.1.

Build & development

Run grunt for building and grunt serve for preview.

Testing

Running grunt test will run the unit tests with karma.

match-game's People

Contributors

davefedele avatar

Watchers

 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.