blakerunyon09 / Bored_Games

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BORED GAMES

=============

OUR SOLUTION FOR YOUR BOREDOM!!


Main Menu

BORED GAMES WILL HELP YOU:

  1. FIND THE PERFECT GAME TO BUST THE BOREDOM WITH OUR QUIZ.
  2. KEEP A CATALOGUE OF ALL YOUR FAVORITES.
  3. MATCH YOU TO A RANDOM GAME...and more!

Table of contents

  • General Info
  • Intro Video
  • Technologies
  • Setup
  • Code Examples
  • Features
  • To-Dos
  • What Inspired Us
  • Created By
  • Shout Outs!

Bored Games is a CLI application that allows users to create a profile,
discover games that match their preferences, and gives users the ability
to save their favorite games. Take the Find Your Best Board Bud quiz
and start your favorites list today!!!

Intro Video

To see Bored Games in action

Technologies

  • Ruby - version 2.6.1
  • ActiveRecord - version 5.2
  • Sinatra - version 2.0
  • Sinatra-activerecord - version 2.0
  • SQLite3 - version 1.4
  • TTY Prompt

Setup

To run this project, install it locally by cloning the GitHub repository and typing:

  • bundle install
  • rake db:migrate && rake db:seed
  • ruby runner.rb

Code Examples

def sign_in 

        user_input = prompt.ask "What is your username?"
        found_user = User.find_by(username: user_input)
        if found_user
            @user = found_user 
            main_menu
        else
            puts "So Sorry Bud, that username doesn't exist. Let's sign you up!"
            sign_up
        end
    end
def find_all_favorites
        all_faves = Usergame.all.filter do |user_fav|
            user_fav.user == @user
        end
        named_faves = all_faves.map do |favorite|
            favorite.boardgame.name
        end
   end

Features

  • Game compatability quiz.
  • Game randomizer.
  • View and edit catalogue.

BG3

BG2

To-do list:

  • Refactor
  • Make code more abstract

To-do list:

  • Refactor Refactor Refactor.
  • Make code more abstract.

WHAT INSPIRED US

Boredom can be a real kick in kiester. We love board games and the way they can be a real boredom buster.
In search of a way to match a game to our needs as well as keep
track of games we love or want to learn more about, we came up with
the concept of Bored Games

CREATED BY

ADAM KNOWLAND - Strong with the logic force, he is.
MELL BASHAM - The littlest ewok with a heart of gold.

SHOUT OUTS!

SYDNEY G., SAM, AND ARIELLE - FOR HELP WITH AUDIO
THE COACHES - FOR SHOWING US HOW TO RESPONSIBLY USE THE FORCE

About


Languages

Language:Ruby 100.0%