game loop

A game loop is code that runs repeatedly (loops) to respond to input to update game state, and provide output that shows the player they affected the game state, like when they push a button that turns on a light.