server

package
v0.0.0-...-749bbe3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2025 License: AGPL-3.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AchievementHumanWin         = 1
	AchievementHumanGammon      = 2
	AchievementHumanBackgammon  = 3
	AchievementTabulaWin        = 4
	AchievementTabulaGammon     = 5
	AchievementTabulaBackgammon = 6
	AchievementWildBGWin        = 7
	AchievementWildBGGammon     = 8
	AchievementWildBGBackgammon = 9
	AchievementDance            = 10
)

Variables

View Source
var Achievements = map[int][2]string{
	AchievementHumanWin:         {"Good Game", "Scored a normal win against a human"},
	AchievementHumanGammon:      {"Double Trouble", "Scored a gammon against a human"},
	AchievementHumanBackgammon:  {"Flawless Victory", "Scored a backgammon against a human"},
	AchievementTabulaWin:        {"Mind Over Matter", "Scored a normal win against BOT_tabula"},
	AchievementTabulaGammon:     {"Weighted Sum", "Scored a gammon against BOT_tabula"},
	AchievementTabulaBackgammon: {"Calculated", "Scored a backgammon against BOT_tabula"},
	AchievementWildBGWin:        {"Network Effect", "Scored a normal win against BOT_wildbg"},
	AchievementWildBGGammon:     {"Hidden Layer", "Scored a gammon against BOT_wildbg"},
	AchievementWildBGBackgammon: {"Transformer", "Scored a backgammon against BOT_wildbg"},
	AchievementDance:            {"Boogie Wonderland", "Blocked opponent from entering for 7 consecutive turns"},
}

Functions

func DiceStats

func DiceStats() string

func NewServer

func NewServer(op *Options) *server

func RandInt

func RandInt(max int) int

Types

type Options

type Options struct {
	TZ         string
	DataSource string
	MailServer string

	RelayChat bool
	Verbose   bool
	Debug     bool

	CertFile string
	CertKey  string

	ResetSalt     string
	PasswordSalt  string
	IPAddressSalt string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL