diff --git a/board/fen.go b/board/fen.go index dca5448..94fbac3 100644 --- a/board/fen.go +++ b/board/fen.go @@ -6,7 +6,6 @@ import ( "strings" "github.com/maaslalani/gambit/piece" - "github.com/maaslalani/gambit/position" ) var ErrInvalidFEN = errors.New("Invalid FEN") @@ -59,8 +58,7 @@ func (b Board) ToFen() string { } func FromFen(fen string) (Board, error) { - var b Board - b.Selected = position.NoPosition + var b Board = New() parts := strings.Split(fen, " ") if len(parts) != 6 {