Examples
Examples
Try the starting example
- JSON Roster entries [ID,points,category]
- [["A",100,"leader"],["B",80,"troop"],["C",80,"troop"]]
- User-supplied total points cap
- 250
- User-supplied minimum roster entries
- 3
- User-supplied maximum leaders
- 1
- Total roster points
- 260
- Points above supplied cap
- 10
- Missing roster entries
- 0
- Leaders above supplied cap
- 0
Try another scenario
- JSON Roster entries [ID,points,category]
- [["A",100,"leader"],["B",80,"troop"],["C",80,"troop"]]
- User-supplied total points cap
- 300
- User-supplied minimum roster entries
- 3
- User-supplied maximum leaders
- 1
- Total roster points
- 260
- Points above supplied cap
- 0
- Missing roster entries
- 0
- Leaders above supplied cap
- 0
Calculation method
Calculation method
Total roster points
sum(r[1] for r in a)
Points above supplied cap
max(0,sum(r[1] for r in a)-b)
Missing roster entries
max(0,c-len(a))
Leaders above supplied cap
max(0,sum(r[2]=="leader" for r in a)-d)
Symbols and units
- a
- JSON Roster entries [ID,points,category]
- b
- User-supplied total points cap
- c
- User-supplied minimum roster entries
- d
- User-supplied maximum leaders
Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.
Calculation steps and notation
sum(list) adds all entries in the list.
Assumptions & limits
Assumptions & limits
- Explicit supported roster rules only: total points, minimum entry count and leader cap. Other faction/event rules are not inferred or certified. Supported limits: All numeric inputs must be finite. Only the explicitly described mathematical scenario is supported.
Are these inputs private?
These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.