Coder Social home page Coder Social logo

gametime's Introduction

Binary Snake

Binary snake is like the traditional snake game but instead of eating food on your screen you eat bits in order to convert a number from decimal to binary.

snake

You can click here to play.

Initial setup to play game locally

Clone

git clone [email protected]:kjs222/gametime.git

To install the dependencies:

npm install

To fire up a development server:

npm start

Once the server is running, you can visit:

  • http://localhost:8080/webpack-dev-server/ to run your application.
  • http://localhost:8080/webpack-dev-server/test.html to run your test suite in the browser.

To build the static files:

npm run build

To run tests in Node:

npm test

Inspiration

Inspired to create educational game, both of us, Kerry and Jenny, have a passion towards education. Binary Snake is based on the original Snake but with some twists. We wanted to do something simple enough to complete well in the time provided, but change it in an interesting and educational way. In this case, to convert base ten numbers into base two numbers, or in other words, convert decimal to binary.

Gameplay

Changes from Original Snake:
  • You do not die if you hit yourself
  • Instead of just having one food source, you're given the option of two, one containing a one and the other a zero.
  • Goal is to get the number (given in decimal) and convert it to binary by eating the correct bits.
  • If you eat a bit in the wrong order, you lose segments.
  • If you eat the correct bit you gain a segment.
Scoring:
  • You get one point for the number of bits you eat correctly
  • You get your decimal number added to your score when you successfully convert a number.

gametime's People

Contributors

kjs222 avatar msjennygiraffe avatar

Watchers

 avatar  avatar

Forkers

msjennygiraffe

gametime's Issues

Tabs

Instructions
Status for numbers
Score Board

Optional: Notepad type
Turn binary into tab, hangman style

Decided against.

detect snake collision with itself [?]
-did you hit yourself in any way

questions for checkin

test local storage
test jquery dom updates based on things that happen in canvas
test jquery dom updates that happen outside context of a game (or as a result of game over)

Scoring

Count stripes you've had during the game
Which means it counts the number of numbers you've converted to binary.

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.