mchess-server/server/player.go

18 lines
225 B
Go

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