The Chess Move Validation hole will go live in approximately 4 days. Why not try and solve it ahead of time?
Gray Code Encoder in JavaScript in chars.