Added Difficulty bar:
Hey Everyone , After struggling to beat AI in my Tic-Tac-toe project i threw some restrictions to beat AI using Difficulty levels.
Bugs i encountered:
The Bracket: I somehow endup mixing all of the backets here and there and it took me a while to fix the trap and because of the bracket trap everytime user was playing PvP AI was playing instead of player 2 for which everytime player 2 was winnin but at the end somehow i managed to fix it.
SETTING up Difficulty Bar: when i was trying to set up the difficulty bar to easy it was taking random guesses but it was looking realistic because the grid has only 9 blocks to move but it was still better although i dropped the idea previously saying it was too dumb but yeah sometimes it makes sense and in Medium difficulty it uses 50% of it brain and the rest random guesses but the game changes at Hard i also call it Unbeatable level here you can rarely beat AI even if you try so hard you will meet draw everytime.
i am slowly trying to express myself,
Happy Coding hour
PIZZA:)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.