This is a zero-sum two-person game with perfect information, solved with alpha-beta pruning algorithm.
At the beginning of the game, the numerical string "4 3 3 2 2 1 -1" is given and each player has a score of 0. The players make moves sequentially by removing one number from the numerical string and adding it to the player's current score. The game ends when one number is left in the numerical string. The player with a score of 9 or higher loses the game. If the score is equal, the game is a draw. In all other cases, the player with the highest score wins the game.
The demo is runnig at: https://magical-bavarois-fa9577.netlify.app/
npm install
npm run serve
npm run build