Files
gomoku/core/util/math/math.go
T
tiennm99 6e3670aec8 feat: add ratel-online server, core, client, and api sources
Import source files from ratel-online organization repos into monorepo
structure for gomoku game development. Update README with project
structure and credits for original authors.
2026-04-09 17:09:41 +07:00

16 lines
189 B
Go

package math
import "math"
func Pow(x, y int64) int64 {
return int64(math.Pow(float64(x), float64(y)))
}
func Sum(x ...int) int {
s := 0
for _, v := range x {
s += v
}
return s
}