nvzqz / Sage

A cross-platform chess library for Swift
Apache License 2.0
375 stars 43 forks source link

PGN move parsing #10

Open mdab121 opened 7 years ago

mdab121 commented 7 years ago

I've added PGNMove struct (representable by string) as well as parsing PGN Moves.

You can now use this API as this: game.execute(move: "NF3") game.execute(move: "O-O") game.execute(move: "exd5") game.execute(move: "d8=Q+")

Parsing is one way for now – you can only apply text moves to a game.