Giter Club home page Giter Club logo

peril's Introduction

Peril

Peril is a Ruby on Rails application for playing Jeopardy. It was designed for LoneStarRuby Conference 2013 and is focused on being used via a projector.

Loading Games

Game files can be loaded using a ‘Rake` task. For example:

bundle exec rake game:load PERIL_GAME_FILE=games/example.rb

If you want to reload the game to pickup changes, add ‘PERIL_RELOAD_GAME=true`.

Gameplay

You can advance through full screen blue slides just by clicking. Answers are viewed by click on their score and the points for the last question can be assigned by clicking on a player’s score.

Blunders

The game includes minimal protection from miss-clicks.

First, blank view screens give you an opportunity to go back before actual content is shown. This is useful if the click that brought you there was an accident.

Also, the game can undo events. This applies to marking an answer viewed or scoring the last answer. The undo feature is bound to a key event on ‘u`.

If you do back out of an answer click before it is shown, you will also need to undo the view event.

peril's People

Contributors

jeg2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

peril's Issues

curious on the use of location.href

I'm still learning the changes of Rails 4.

I noticed that you are using Turbolinks but in some of the JS files you are using window.location.href = new_path instead of Turbolinks.visit(new_path).

Is this to maintain the most compatibility for browsers not using Turbolinks?

thanks!

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.