Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- virtualHandle :: Handle
- virtualParty :: Party
- data VirtualUser = VirtualUser {}
- type Delta = Int
- type Seed = Float
- data Contestant = Contestant {}
- findContestant :: Party -> [Contestant] -> Maybe Contestant
- data ContestResults = ContestResults {
- crContestants :: [Contestant]
- crDeltas :: Map Party Delta
- crSeeds :: Map Rating Seed
- data VirtualResult = VirtualResult {
- virtualRank :: Int
- virtualDelta :: Delta
- virtualSeed :: Seed
Documentation
virtualParty :: Party Source #
A Party
representing the user's virtual participation.
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 # |
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.
data Contestant Source #
The participation of a user in a contest.
Instances
Eq Contestant Source # | |
Defined in Codeforces.Virtual.Types (==) :: Contestant -> Contestant -> Bool # (/=) :: Contestant -> Contestant -> Bool # | |
Show Contestant Source # | |
Defined in Codeforces.Virtual.Types showsPrec :: Int -> Contestant -> ShowS # show :: Contestant -> String # showList :: [Contestant] -> ShowS # |
findContestant :: Party -> [Contestant] -> Maybe Contestant Source #
Finds a single contestant from the given Party
, or Nothing
if none
found.
data ContestResults Source #
ContestResults | |
|
Instances
Show ContestResults Source # | |
Defined in Codeforces.Virtual.Types showsPrec :: Int -> ContestResults -> ShowS # show :: ContestResults -> String # showList :: [ContestResults] -> 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 # |