Giter Club home page Giter Club logo

magic's Introduction

"Magic" Number Guesser

Check out the demo here

Over dinner at my family's christmas party, a gift from one of the Christmas crackers was a magic trick. The materials consisted of a deck of 6 cards, each with 32 integers printed, as well as an instruction booklet outlining the process of the trick. First, the performer asks the participant to think of a number between 1 and 63. The cards in the deck are then shown to the participant, and the participant is asked to identify whether the card presented contained their number. After which the performer correctly guesses the participant's number by following the directions in the pamphelet.

This is just a really simple project for me to learn some basics of git/github, practice javascript, and play around a bit with the skeleton framework.

Things I'd like to play around with later:

  • Game Mechanics
    • Expanding the range
      • 1-63 isn't too big of a range โ€” going to 255 or 511 might be fun
    • Removing "ruled out" numbers at each step
    • Changing the "guess" from an alert box to within-page
  • Programming
    • restructuring/reworking js, css files
    • general UI changes
  • Explanation
    • I'd really love to do a short write-up on how this trick works

magic's People

Contributors

adam-garcia avatar

Watchers

James Cloos avatar  avatar

magic's Issues

Card contents statically generated

TODO:
I generated the card contents with R, and copied into magic.html, but I'd really like to look into doing the whole shebang with javascript

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.