Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

185 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blaseball Status

About

An attempt to replicate Playoff Status behavior, but for Blaseball.

Published at https://mixolyde.github.io/blaseballstatus

TODO

  • Postseason schedule
  • Handle postseason data live
  • Schedule pages
  • Get a twitter account and button
  • Factor future schedule into magic numbers
  • Unit test coverage report
  • Pull database api code out into a separate library
  • Move project to a blaseball-specific account on github
  • Reduce API calls during siesta

Planned release schedule

  • v0.0.1
  • Wild/Mild league data toggle
  • Live pull data on refresh (thanks, cors-proxy!)
  • Games behind math
  • v0.0.2
  • Data loading indicator and data filling as it comes in
  • Winning magic numbers
  • Party time magic numbers
  • Clinch calculations
  • v0.0.3
  • Auto refresh data in browser
  • Save last view
  • About and info pages
  • v0.0.4
  • New playoff birth rules
  • Group by division toggle
  • Properly calculate games played
  • Automate static data updates during the season
  • v0.0.5
  • Playoff prediction percentages
  • v0.0.6
  • Postseason content
  • Add emoji to team rows
  • Show full team name in wide view
  • v0.0.7
  • Live Postseason chance updates
  • Live Postseason schedule updates
  • v0.0.8
  • Team Schedules
  • Get a twitter account and button
  • Unit test coverage report
  • Move project to a blaseball-specific account on github

Contributing

Installing Dart

You will need Dart installed and on your $PATH to build and test the app.

On Linux

cd ~
wget --quiet https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-linux-x64-release.zip
unzip -q -o dartsdk-linux-x64-release.zip -d ~
export PATH=$PATH:~/dart-sdk/bin:~/.pub-cache/bin
pub global activate peanut
pub get

On Windows, get the Windows Dart SDK zip, unzip it somewhere, and add that unzip's bin folder to your PATH variable. You also need to add the Pub Cache bin folder to your PATH, which may be in c:\Users\<username>\AppData\Roaming\Pub\Cache\bin.

You typically need to call the '.bat' versions of the helper tools in Windows.

pub.bat global activate peanut
pub.bat get

Building and testing

You can run all unit-tests with pub.bat run test or a specific test with dart test\test-file.dart.

To serve up the app and test in your browser run webdev.bat serve and go to http://localhost:8080/.

On Windows, there doesn't seem to be a clean way to shutdown the local webdev server, so you may have to kill the process from Task Manager, or with taskkill -f -pid ###.

I find the Windows Git Shell from Github that emulates a lot of Linux stuff to be really useful.

alias killdart='tasklist |grep dart |head -1 |awk '\''{print $2}'\'' | xargs taskkill -f -pid '

Deploying

The Peanut plugin will automatically build your static web content and commit it to the gh-pages branch. Then you can push the gh-pages branch up to github.

peanut.bat
git push origin --set-upstream gh-pages

Your site should eventually get published to yourusername.github.io/blaseballstatus.

Acknowledgements

Huge thanks to:

Created from templates made available by Stagehand under a BSD-style license.

About

Blaseball Playoff Status web site

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages