mchess-server/server/player.go

16 lines
214 B
Go

package server
import "github.com/gorilla/websocket"
type Player struct {
id int
conn *websocket.Conn
}
func NewPlayer(id int, conn *websocket.Conn) *Player {
return &Player{
id: id,
conn: conn,
}
}