24.1.8 • Published 10 months ago

ausfll-score-calculator v24.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

ausfll-score-calculator

FIRST LEGO League score calculator by the Australian Head Referee

To install:

    npm install --save ausfll-score-calculator

    # or

    yarn add ausfll-score-calculator

Usage

I haven't had time to sort out imports properly yet, so they're a little clunky.

The main things to import are the games themselves:

import Games from "ausfll-score-calculator";

const Game = Games.SuperPowered;

Game.validate(/*...*/);
Game.score(/*...*/);

validate and score require a complete list of ScoreAnswer. The best way to make sure this is complete is to convert Game.scores: Score[] to ScoreAnswer by adding an answer.

See examples/ScoreCalculator.tsx for an example of this.

Development

Remember to yarn build before you npm publish!

24.1.8

10 months ago

24.1.7

10 months ago

24.1.6

10 months ago

24.1.4

10 months ago

24.1.5

10 months ago

24.1.3

12 months ago

24.1.2

12 months ago

24.1.1

12 months ago

23.1.2

1 year ago

23.1.1

2 years ago

23.1.0

2 years ago

23.0.7

2 years ago

23.0.4

2 years ago

23.0.3

2 years ago

23.0.6

2 years ago

23.0.5

2 years ago

23.0.0

2 years ago

23.0.2

2 years ago

23.0.1

2 years ago

2.0.0

2 years ago

22.0.5

3 years ago

22.0.4

3 years ago

22.0.3

3 years ago

22.0.2

3 years ago

22.0.1

3 years ago

22.0.0

3 years ago