This is a toy project for automatically solve the fruit game
https://www.gamesaien.com/game/fruit_box_a/
To run the program, First compile the source with gcc
g++ main.cc -o FruitGameSolver
Or whatever the C++ compiler you have.
The sample input is in the example.txt You can run the sample with the command
cat example.txt | ./FruitGameSolver