mirror of
https://github.com/tiennm99/gomoku.git
synced 2026-06-06 16:13:56 +00:00
6e3670aec8
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.
16 lines
189 B
Go
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
|
|
}
|