Press ESC to close

how to make a chess ai in javascript