util

package
v0.0.0-...-ec3717e Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNextTurn

func GetNextTurn(turn int) int

GetNextTurn returns the next turn number

func GetPreviousTurn

func GetPreviousTurn(turn int) int

GetPreviousTurn returns the previous turn number

func GetRNG

func GetRNG() *rand.Rand

GetRNG returns a Random Number Generator

func IsSameTeam

func IsSameTeam(no1 int, no2 int) bool

IsSameTeam checks no1 and no2 player number belongs to the same team

func ShiftTurn

func ShiftTurn(turn int, offset int) int

ShiftTurn shifts the turn by the offset number

Types

This section is empty.

Jump to

Keyboard shortcuts

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