Skip to content

Unable to use the library #15

@cristian-5

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.

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