Combinatorial game theory, also known as CGT is a branch of applied mathematics and theoretical computer science that studies combinatorial games, and is distinct from "traditional" or "economic" game theory. CGT arose in relation to the theory of impartial games, the two-player game of Nim in particular, with an emphasis on "solving" certain types of combinatorial games.