Code Tic Tac Toe Game in JavaScript HTML CSS

preview_player
Показать описание
Tic Tac Toe Javascript Tutorial. Complete tutorial on how to code a full tic tac toe in javascript step by step for beginners! Learn how to build tic tac toe with javascript!

Java Game Programming Projects Playlist:

JavaScript Game Programming Projects Playlist:

Subscribe for more coding tutorials 😄!

#codetictactoe #tictactoejs #tictactoejavascript
Рекомендации по теме
Комментарии
Автор

Hey man, I wish I found you're channel when I got started. The way you explain is beginner-friendly and your drawings also help. Keep it up bro🙌

cdaaniel
Автор

why dos this have no views this is the easiest tutorial ever nice man

tusharmalhotra
Автор

This is the best walkthrough I've seen so far ... by far! Well done. And thanks!

robparent
Автор

If you enjoyed the video, don't forget to like, subscribe, and share! :)

KennyYipCoding
Автор

can you create one where you play against the computer

KngAb
Автор

Function to check Game Tie:

function checkTie()
{
let count = 0;
for(let r=0;r<3;r++)
{
for(c=0;c<3;c++)
{
if(board[r][c] != ' ')
{
count++;
}
}
}

if(count == 9)
{
for(let r=0;r<3;r++)
{
for(c=0;c<3;c++)
{
let t = + "-" + c.toString());
t.classList.add('tie');
}
}
gameOver = true;
}
}

sufiantariq
Автор

what if game is tie then ...can you please make function for check tie ??

renishsalakhana
Автор

Nice tutorial!
I made this game, but with buttons 🙂

siempreretro
Автор

Omg! I found the best 👍💯tutorial ever
Thank you 🙏🙏

kamarajp
Автор

please make a function for when the game is tied in this code

renishsalakhana
Автор

Hey bro great video I have a doubt in line 11 how do you set values of board array in 'r' and 'c'

stuartlittle
Автор

hello
so i wrote everything in the code the exact same
but when i added the
if(board[r][c] != ' '){
return;
}

it becomes unclickable
Pls help

tanmaym
Автор

Hi, im new js learn, i want learn javascript, but i still don't understand, 12:39 what let r let c mean, can you explain pls and board [r][c], how it does works, thnx you very much

sezyofc
Автор

im new to coding. im encountring an issue that my borders are not showing i even tried using z-index but in vain. Welp

YoRu-Cat
Автор

Hey thanks man that was helpful but I need a favour can you make it so after winner is decided a line comes up on the winning tiles

InFiNiTy
Автор

please make video or short on draw too!

AdityaKumar-bfyn
Автор

Can anyone guide me the procedure to run this on any mobile phones

MrinalSinghEC
Автор

can we build tic tac toe using constructor???

derickfarnicky