client/spectator.go

26 lines
531 B
Go

package client
import (
"log"
"bitbucket.org/hackerbots/server"
)
type SimpleSpectator struct {
width, height float64
}
// NewSimpleSpectator simply returns a populated, usable *SimplePlayer
func NewSimpleSpectator(width, height float64) *SimpleSpectator {
return &SimpleSpectator{
width: width,
height: height,
}
}
// Recv is our implementation of receiving a server.Boardstate from the server
func (p *SimpleSpectator) Update(bs *server.Boardstate) map[string]server.Instruction {
log.Println("hi")
return nil
}