Subtraction Game is a class of Combinatorial games. Let S be a set of positive integers. The Subtraction Game with subtraction set S is played as follows.
From a board of N fruits, you and AI alternate make the moves. A move consists of pickup 1 or given fruits from the board. The player to pick up the last fruit wins.
You can get more information about Subtraction game at https://en.wikipedia.org/wiki/Nim or visit my website at http://khangle.me