I'm not able to initialize a normal game.
There is no Game.init() without parameters and when I try to do the following I get:
'FenSerialization' initializer is inaccessible due to 'internal' protection level.
let serialization = FenSerialization() // <---- ERROR HERE
let game = Game(position: serialization.deserialize(fen: myfen))
Perhaps you meant to make deserialize and serialize both static.
Why does it work for you?
It works for you because you import the library with @testable import ChessKit which allows things like protection levels to disappear for testing purposes.
I'm not able to initialize a normal game.
There is no
Game.init()without parameters and when I try to do the following I get:'FenSerialization' initializer is inaccessible due to 'internal' protection level.Perhaps you meant to make
deserializeandserializebothstatic.Why does it work for you?
It works for you because you import the library with
@testable import ChessKitwhich allows things like protection levels to disappear for testing purposes.