Marco
6cbd7d37aa
1. Make lobby a struct containing the players and a mutex used to lock itself 2. Wait for websocket connections to be established by both players before starting the game. 3. Add methods to write to and read from players
12 lines
182 B
Go
12 lines
182 B
Go
package server
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
var AppPath = "/home/m/projects/programming/flutter_projects/mchess/build/web"
|
|
|
|
func PlayHandler(w http.ResponseWriter, r *http.Request) {
|
|
|
|
}
|