simple spectator that says hi every message
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user