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.
- Clone this repository (
git clone https://github.com/johnisom/sinatra_twentyone
) cd
into this repository (cd sinatra_twentyone
)- Install dependencies (
bundle install
)- If you don’t have ruby-2.6.5, install it
- Run the server locally (
bundle exec rackup
) - Enjoy playing Twenty-One at http://localhost:9292/