Has to be if-else statements. This was how video game AIs were originally implemented (starting with Pong, Space Space Invaders, PAC-Man).
Probably the first touch point of the general public with the term AI, where the term was deliberately used in a product for the general
Early Video Game AI: If-Else Statements and Public Introduction
By
–