score, initialize core functionality and types
Adds Chrono package Adds a "Result" type to lib.rs creates helpful type aliases for Score, Boost, and Gravity. Creates a "TimedScore" which is a value and time data for calculating score over time. There are two forms of this, Boosted and Decaying. Since a Score can either be decaying over time or have been boosted recently and be kept from decaying for some time. Also implements a BoostedScore and a DecayingScore, which are both TimedScores which represent the different states. These are important because you can't boost a BoostedScore for instance.
This commit is contained in:
parent
38d1cbbd50
commit
a42853ac5a
4 changed files with 707 additions and 0 deletions
|
|
@ -4,3 +4,5 @@ version = "0.1.0"
|
|||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
tokio = { version = "1.49.0", features = ["full"] }
|
||||
chrono = "0.4.43"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue