"Game logic" refers to the set of rules and principles that govern how a video game or any game operates. It determines the actions that players can take, the behavior of characters or objects in the game, and the outcomes of different situations. Basically, it's the behind-the-scenes logic that makes the game work and creates an enjoyable and balanced experience for players.
Full definition