Posts

Showing posts from September, 2020

Dynamic Tic Tac Toe Game in Jquery

Image
In this story, I will be building an evergreen Tic Tac Toe game in Javascript(Jquery). It looks really simple in implementation but for finding the winner it’s quite complex. Tic Tac Toe Game The rules of the game are as follows. In Tic Tac Toe, 2 players take turns adding their token (an X or an O) to a N X N, for the more ambitious) grid until one player matches (N) in a row in any direction. The source code of this game is shown below respectively. You can also look at medium.com, I have Link below :-  https://medium.com/@subashkhatri165/dynamic-tic-tac-toe-game-82ec5992e014 https://github.com/subashkhatri/tictactoe/tree/tictactoe_v.02 Code from index file:- <div id ="container" class ="play-board"> <header class ="play-board-title"> <h3>Tic Tac Toe </header> <div class ="player"> <div style ="font-size:30pt;" id ="player1" class ="selected">. </div> </div> <tabl...