Pages for logged out editors learn more
In this version of the snake game, the direction the snake moves is determined by which key is typed. This set of instructions is executed while forever is toggled using the procedure ‘read keyboard input.’