Press ESC to close

how to write chess ai in java