The mathematical analysis of Nim (https://en.wikipedia.org/wiki/Nim#Mathematical_theory) is easier than even that of tic-tac-toe (where you more or less have to write out the full game tree to analyse the game. See https://en.wikipedia.org/wiki/Tic-tac-toe#Strategy), making it easier to program.