kevinfrei / ScoreBoard

A score board for First Tech Challenge games (currently PowerPlay)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FTC PowerPlay 2022 ScoreBoard

This is a simple 'scoring' application to help FTC teams better consider strategy for the PowerPlay 2022 FTC Robotics game. Try it out here (it's blocked by our school district's wifi, unfortunately: It works on a phone in landscape mode pretty well).

First, you have 5 cones to place in the autonomous period. Once you've placed (at most) 5 cones, you click the "Click to record Auto" and the autonomous scoring is completed, freeing all cones for scoring. You can place the beacons by clicking the "Place Beacons" button. Once a junction has a beacon, you can no longer place any additional cones on that junction.

There is no need to click any additional buttons to see the final score: It is kept up-to-date at all times. The only portions of scoring that are not considered are specific to robot parking. This means that the score calculated is a bit lower, but it does consider 'circuits' as well as capping.

Source code

This was created using Create React App. It's Typescript, React, using Recoil to manage state without requiring full re-renders of the entire UI.

Once you've cloned the repo:

  • yarn install will install all the dependencies.
  • yarn start will launch the application in developer mode.
  • yarn test runs the (pitiful) tests I've written.
  • yarn bulid will build the full site into the build directory.

The code is all formatted with Prettier, because thinking about code formatting is a waste of brain cells.

About

A score board for First Tech Challenge games (currently PowerPlay)


Languages

Language:TypeScript 69.2%Language:CSS 24.9%Language:HTML 4.5%Language:Shell 1.0%Language:JavaScript 0.4%