glinscott / Garbochess-JS

A strong javascript chess engine using WebWorkers
http://forwardcoding.com/projects/ajaxchess/chess.html
Other
310 stars 100 forks source link

Move encoding question #6

Closed FrankWST closed 12 years ago

FrankWST commented 12 years ago

Hello, I would call "MakeMove(move);" on your engine. How do I have to encode the "move" when I have "e2e4" or "d7d8Q" (in case of pawn promotion)? Thank you and regards, Frank

glinscott commented 12 years ago

You can call GetMoveFromString("e2e4"). Make sure everything is lower case though.