Press ESC to close

how to write a code for simple ai machine