Git Product home page Git Product logo

riddle's Introduction

Riddle

Purpose

A simple test project.

As functional requirement, I'm solving simple riddle. However major goal is to write a MVP assuming it is a real product and will be enhanced in future.

Thus goal is to follow TDD approach with full separation of concern. It must follow all coding best practices and SOLID principles.

Instead of using any framework, I'm doing it in core PHP. However another goal is to design product in such a way that we can implement it in any PHP framework without much changes.

Functional requirements

You have 9 balls, equally big, equally heavy - except for one, which is a little heavier.

How would you identify the heavier ball if you could use a pair of balance scales only twice?

Technical requirements

  1. Draw a „Flow chart“ in PNG Format (and optional .xmi or .dia)
  2. Write the code to solve this problem
    • Use classes in php5
    • Store every move of every game in a MySQL database
    • Simple HTML + jQuery game with Auto-Play and Auto-Replay features
    • Unit tests

Solution

Please refer docs/solution.md for my technical solution.

riddle's People

Contributors

kapilsharma 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.