You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
letserialization=FenSerialization() // <---- ERROR HERE
letgame=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.
Activity
Trickfest commentedon May 4, 2026
I just submitted a PR that I think addresses your issue. I ran into the same thing. Let me know if I'm wrong.