Posted October 30, 2024 by gmourao
#logic #problem solving
A few of the game's modes require the player to follow whichever information they have already discovered on previous guesses. That is: if on one guess the letter "F" is indicated to be on a certain place, it must be on that place on subsequent guesses.
To implement that, I had to make it so that the game would know all the rules that must be followed, in order to check it every time the player places a guess. I'm having a hard time doing that, though.
On the image, you can see that while the second guess did follow the rule of placing one L on the third letter, it did not follow the rule of not repeating the L -- and still, the game accepted this guess.