notnil / chess

chess package for go
MIT License
508 stars 126 forks source link

Unable to build with docker #131

Closed nksupermarket closed 10 months ago

nksupermarket commented 10 months ago

This is a weird one because the issue only arises if I use gameState.ChangeNotation. I am able to build outside of the docker process it is only when I use docker when it fails. And it only fails if I use gameState.ChangeNotation. For example, this does not compile:

package main

import (
    "github.com/notnil/chess"
)

func main() {
    gameState := chess.NewGame(chess.UseNotation(chess.UCINotation{}))
    gameState.ChangeNotation(chess.LongAlgebraicNotation{})
}

The error message I get compiling this file is:

2.659 ./main.go:11:12: gameState.ChangeNotation undefined (type *chess.Game has no field or method
 ChangeNotation)