Documentation ¶
Index ¶
Constants ¶
View Source
const (
MAX_REASON_SIZE = 200
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Score ¶
func (*Score) DeductionInt ¶
type ScoreGenerator ¶
type ScoreGenerator struct { // 初期スコア InitialScore int64 // 振れ幅 Deviation int64 // Fast Fail 確率(1/100) FastFailRatio int64 // Slow Fail 確率(1/100) SlowFailRatio int64 // スコア上昇係数1 RiseCoefficient1 float64 // スコア上昇係数2 RiseCoefficient2 float64 // スコア上昇指数 RisingIndex float64 // 遅咲き定数 LateBloomConst int64 // 減点確率(1/100) DeductionProbability int64 // 減点率 DeductionRatio float64 // 減点振れ幅 DeductionDeviation int64 }
func NewScoreGenerator ¶
func NewScoreGenerator() *ScoreGenerator
func (*ScoreGenerator) BaseScore ¶
func (s *ScoreGenerator) BaseScore(index int64) int64
func (*ScoreGenerator) Deduction ¶
func (s *ScoreGenerator) Deduction(index int64, base int64) int64
func (*ScoreGenerator) Generate ¶
func (s *ScoreGenerator) Generate(index int64) *Score
Click to show internal directories.
Click to hide internal directories.