Giter VIP home page Giter VIP logo

ethmth / pitch-wizard Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 196 KB

Pitch Wizard is an interactive web app with examples and a quiz to teach users how to identify the differences between four baseball pitches: Fastball, Changeup, Curveball, and Knuckleball. Built with Flask, jQuery, Bootstrap, and plain HTML/CSS/Javascript for Spring 2024 of COMS 4170 UI Design at Columbia University.

Home Page: https://pitchwizard.lol

Python 16.02% JavaScript 50.75% CSS 17.88% HTML 14.59% Dockerfile 0.35% Shell 0.41%

pitch-wizard's Introduction

Pitch Wizard

YouTube Demo: youtu.be/1a27eqAXpLg

GitHub Repo: github.com/ethmth/pitch-wizard

Hosted Site: pitchwizard.lol

⚠️ Only tested on Chromium-based browsers.

Pitch Wizard is an interactive web app with examples and a quiz to teach users how to identify the differences between four baseball pitches: Fastball, Changeup, Curveball, and Knuckleball.

Built with Flask, jQuery, Bootstrap, and plain HTML/CSS/Javascript for Spring 2024 of COMS 4170 UI Design at Columbia University.

Running it locally

⚠️ Only tested on Linux, Python 3.12.3 and Flask 2.3.3.

  1. Install Python 3.
  2. Install flask
pip install flask
# OR
pip3 install flask
  1. Clone this repo
git clone https://github.com/ethmth/pitch-wizard.git
cd pitch-wizard/
  1. Run the server
python server.py
# OR
python3 server.py

Responsibilities

I completed this project individually, so there is no division of labor. However, here is an overview of some of my completed tasks:

  • Media Collection: I created a (private) automated web scraper for pitching videos from baseballsavant.mlb.com. I then used ffmpeg to strip the audio from all videos because announcers tend to give away too much. I used ML-auto-baseball-pitching-overlay for one or two examples, but clip preparation was too burdensome to use for much.
  • Media Hosting: I am hosting all of the media on my personal web server. Since I already had a web server for various purposes, adding the media was not too burdensome.
  • Data Architecture: I created all of the lessons and quiz questions, and translated them into json so that they could by rendered by my Javascript app.
  • Design: I designed the application myself, first with a low-fi version in Google Slides, then implemented the design in my web application.
  • User Demos: I facilitated three user testing demos in the low-fi and iterated design stages, understanding user interactions and adapting my design to create a smoother and more interactive, intuitive user experience.
  • Implementing the UI: I implemented the UI using JQuery, CSS, and HTML templates.
  • Backend Logic: I handled checking user quiz submissions and storing user data on the backend Flask server. I used Flask sessions to associate certain quiz progress/scores with certain users.
  • Testing: I thoroughly tested my project to ensure that all transitions work, all answers are correct, and there is no way to break my program. I even implemented a custom 404 page so that users don’t have to see that ugly Flask thing.
  • Hosting: I decided to host my application on the web pitchwizard.lol. I’m logging user visits and answers, so data from users using my application can potentially be used to improve my quiz and learning experience even more based on what users are failing at.

pitch-wizard's People

Contributors

ethmth avatar

Watchers

 avatar

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.