Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data VirtualUser = VirtualUser {}
- data VirtualResult = VirtualResult {
- virtualRank :: Int
- virtualDelta :: Delta
- virtualSeed :: Seed
- type Delta = Int
- type Seed = Float
- calculateResult :: VirtualUser -> [RatingChange] -> [RanklistRow] -> Maybe VirtualResult
Documentation
data VirtualUser Source #
Represents the virtual participation of the user in this contest.
Instances
Show VirtualUser Source # | |
Defined in Codeforces.Virtual.Types showsPrec :: Int -> VirtualUser -> ShowS # show :: VirtualUser -> String # showList :: [VirtualUser] -> ShowS # |
data VirtualResult Source #
A virtual participation result
VirtualResult | |
|
Instances
Show VirtualResult Source # | |
Defined in Codeforces.Virtual.Types showsPrec :: Int -> VirtualResult -> ShowS # show :: VirtualResult -> String # showList :: [VirtualResult] -> ShowS # |
Difference in rating between a user's current rating, and their rating following this contest.
The seed is the expected ranking for each participant before the contest begins.
A contestant's rating increases should they perform better than their seed, and decreases should they perform worse.
:: VirtualUser | Details about the virtual participation. |
-> [RatingChange] | Rating changes for this contest |
-> [RanklistRow] | Standings for this contest. |
-> Maybe VirtualResult | Contest results for this user |
Computes the results the user would have had, had they participated in this contest live with their current rating.