Game playing is the AI task of selecting actions within the formal rules of a game — board, card or video game — in order to win, draw favourably or otherwise optimise an objective against one or more opponents or the environment. It has long served as a benchmark domain for artificial intelligence because games provide clear rules, measurable outcomes and tunable difficulty while still requiring planning, adversarial reasoning or pattern recognition. Search algorithms, which explore possible move sequences to evaluate their consequences, are a core technique for building game-playing agents.