3e013ce1a5
Breaking out console runner into its own file, adding an empty web runner, and starting to test that games and game states are able to represent themselves as images.
15 lines
196 B
Go
15 lines
196 B
Go
package conway
|
|
|
|
import (
|
|
"math/rand"
|
|
"time"
|
|
)
|
|
|
|
func init() {
|
|
rand.Seed(time.Now().UTC().UnixNano())
|
|
}
|
|
|
|
func RunWebGame(height, width, sleepMs int, mutate bool) (int, error) {
|
|
return -1, nil
|
|
}
|