Skip to content

johnisom/sinatra_twentyone

Repository files navigation

Twenty One

Twenty One/Blackjack powered by Ruby and the Sinatra framework. You play as the participant and the computer plays as the dealer. It is hosted live on Heroku at this link.

I built this from scratch, with the exception of the Sinatra framework. Keep in mind that this app is entirely server-based, so there is no JavaScript or event handling.

Example Usage

Screencast of app

Installation

  1. Clone this repository (git clone https://github.com/johnisom/sinatra_twentyone)
  2. cd into this repository (cd sinatra_twentyone)
  3. Install dependencies (bundle install)
    • If you don’t have ruby-2.6.5, install it
  4. Run the server locally (bundle exec rackup)
  5. Enjoy playing Twenty-One at http://localhost:9292/