I had an idea to use the this algorithm to simulate real life game scenarios where a player could train and retrain their mistake and be ready for when that situation happens again in real life. This simulation would calculate every possible scenario and give you the best one. This would work almost the same way as it is used on Stockfish for chess. It calculates every possible scenario and always makes the right move.
Now my question is, would that be possible? Is there another algorithm/AI/Software that could make this simulation work?