Thank you for playing my game, about the logic a will have to say that there is none, but I wanted to add a true system with player input logging but because of the time I couldn't do it. And also the theme was "the game is a liar" so it kinda fits if the game doesn't allow you to win everytime just by picking the opposite of what the computer is saying.
You can check the code if you want, the project is public on Github.
I hope you have liked my game, I will try yours now :D