diff --git a/chess/pawn.go b/chess/pawn.go index bbac1ce..9f54ef8 100644 --- a/chess/pawn.go +++ b/chess/pawn.go @@ -122,7 +122,8 @@ func (p *Pawn) HandleEnPassant(b *Board, move, lastMove types.Move) (bool, error } if wasEnPassant { //play the move - delete(b.position, lastMove.EndSquare) + delete(b.position, lastMove.EndSquare) // take opponent's pawn + delete(b.position, move.StartSquare) // move moving pawn b.position[move.EndSquare] = GetPieceForShortName(move.PieceMoved) } diff --git a/main.go b/main.go index cbe0d10..2732a7f 100644 --- a/main.go +++ b/main.go @@ -88,7 +88,6 @@ func hostPrivateGame(c *gin.Context) { func joinPrivateGame(c *gin.Context) { req := api.PlayerInfo{} - log.Println("OI, WHERES ME LOGS") log.Println(c.Request.Body) err := c.ShouldBindJSON(&req) if err != nil || req.Passphrase == nil || *req.Passphrase == "" {