diff --git a/server/chess_move.go b/server/chess_move.go index 25d3361..d940a20 100644 --- a/server/chess_move.go +++ b/server/chess_move.go @@ -2,7 +2,6 @@ package server import ( "errors" - "fmt" "log" "strings" ) @@ -44,16 +43,3 @@ func parseMove(received string) (*chessMove, error) { return &move, nil } - -func moveToString(move chessMove) string { - var str string - if !move.realMove { - str = "just checking: " - } else { - str = "move done: " - } - str = str + fmt.Sprint(move.startSquare.col) + fmt.Sprint(move.startSquare.row) + - " " + fmt.Sprint(move.endSquare.col) + fmt.Sprint(move.endSquare.row) - - return str -} diff --git a/server/player.go b/server/player.go index dbd8988..3a60cbd 100644 --- a/server/player.go +++ b/server/player.go @@ -13,7 +13,3 @@ func NewPlayer(name string, conn *websocket.Conn) *Player { conn: conn, } } - -func (player *Player) movePlayerToGame(game chessGame) { - -}