Skip to content

An online gaming site. Play tic-tac-toe against a bot that can't defeated.

Notifications You must be signed in to change notification settings

prashant-kikani/teddy

Repository files navigation

teddy

https://prashantkikani.com/tic
An online gaming site.
Play tic-tac-toe against a bot that can't be defeated.

How I have developed this?

In Tic-Tac-Toe game, total 9 entries will be made by both users. 5 by user, 4 by robot. So, whole game has to be played on client side to lower the load of server. So, I have developed script in JavaScript. Means, whole game logic is on client side. No requests will be generated every time when user makes a move on the board.

MiniMax algorithm is used for this game. Which makes this bot unbeatable.

CSS and Bootstrap are used for front end, PHP for back end, JavaScript and jQuery for Game. I haven't used any ready template for front end.

Play & Enjoy...