No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
scripts
styles
views
.gitignore
README.md
bower.json
firebase-permissions.txt
index.html
leaderboard-reset.html

README.md

High Low

Guess if the next number will be higher or lower than the current number. Features:

  • Streamlined interface to make playing multiple games in a row easy and fun
  • Save your best score with local highscores and leaderboards
  • Responsive design. Play on a desktop, laptop, tablet, or smart phone!

Check out the demo hosted at www.keithott.com

Running High Low

In order to run High Low, clone the repository. Then run the following command. (You'll need node.js and bower already installed. See nodejs.org and bower.io for details.)

bower install

Next, you'll want to sign up for a Firebase account and create a new app. Copy/paste the permissions saved in firebase-permission.txt and put them in Firebase's "Security & Rules" page. Then, modify the existing Firebase URL in the following files and change it to your new app's URL:

  • leaderboard-reset.html
  • scripts/HighscoreFactory.js

Next, open leaderboard-reset.html in your web browser and click "Reset All Leaderboards" to initialize the high scores. Finally, open index.html and enjoy!

Why this was written

This was originally written as a sample program for a series of tutorial videos by the Paired Programmers. Watch them free here:

Follow the Paired Programmers

License

Copyright 2015 Keith Ott

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.