Tic Tac Toe for challenge (fr, pl, hr) - please check them :)


Hi,
This is my 7th game for the 20 games challenge (level 5 though).
I was struggling with AI a lot, but I guess it works as intended now :)

Basically it checks all possible options 2 moves ahead and sets priority on them according to how big the chance is to win/lose
and then randomly chooses from best 2 options (97% best, 3% 2nd best) - consider it only checks 2 moves ahead and it's not set as to read it the best way possible. 
This way it should play each game differently and one time better, one time worse.

I also learned how to implement translation into the game, which for me is quite significant (although You might want to check and let me know if You find any errors :)  )

AI also estimates how good the player move was and gives his response, based on pretty much the same script, but a bit different value.

As always code can be found on GitHub on game page.

Feel free to check it out and leave Your opinion if You do, thanks!

https://mayzavan.itch.io/20gc-tictactoe

Files

tic web.zip Play in browser
Jul 31, 2024

Leave a comment

Log in with itch.io to leave a comment.