Skip to content

Unable to use the library #15

Open

Description

@cristian-5

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.

Activity

  1. Trickfest commented on May 4, 2026

    @Trickfest

    I just submitted a PR that I think addresses your issue. I ran into the same thing. Let me know if I'm wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions