Tic Tac Toe in p5.js (Coding Challenge 149)

Tic Tac Toe in p5.js (Coding Challenge 149)

The Coding Train

4 года назад

1,390,150 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@michaelblive
@michaelblive - 08.08.2023 02:46

These videos make me happy.

Ответить
@n8xeditz561
@n8xeditz561 - 27.05.2023 11:34

M so confused, I m more gripped than a intermediate in JavaScript (also know hmtl css and react js, obv a web dev) I just finish my c++ basics and some classes objects encapsulation private public this friendly etc. But I don't know how can I use c++ in web dev or game dev and what about user input this tic tac toe is working itself !!!

Ответить
@erickoavenada969
@erickoavenada969 - 04.05.2023 16:55

Bro made this without html

Ответить
@paganimarker1898
@paganimarker1898 - 03.04.2023 04:01

is let like int ?

Ответить
@huhmza1041
@huhmza1041 - 14.03.2023 05:26

w vid

Ответить
@brookestephen
@brookestephen - 19.02.2023 09:44

Use the "Magic Square" to number the grid. Use this ((2, 7, 6), (9, 5, 1), (4, 3, 8)) and verticals, horizontals and diagonals all add to 15. Opposites add to 10, since 5 is in the middle. This math helps determine moves to win, whether someone has one, and how to block. You can put it all in one function, and call it for all three calculations. The html grid looks like this:
<body>
<table>
<tr><td id=2 onclick="move(2)">2</td><td id=7 onclick="move(7)">7</td><td id=6 onclick="move(6)">6</td)</tr>
<tr><td id=9 onclick="move(9)">9</td><td id=5 onclick="move(5)">5</td><td id=1 onclick="move(1)">1</td)</tr>
<tr><td id=4 onclick="move(4)">4</td><td id=3 onclick="move(3)">3</td><td id=8 onclick="move(8)">8</td)</tr>
</table>
</body>

Ответить
@palwashaniazi7851
@palwashaniazi7851 - 07.02.2023 13:42

Dhatal na karoo sedhi Tarah batao

Ответить
@coolmanthecool603
@coolmanthecool603 - 30.11.2022 04:04

bro tick tack toe is not 3x3x3

Ответить
@dhairyshrivastava
@dhairyshrivastava - 28.08.2022 15:12

Isn't he using javascript , i don't get it how is this a CPP project??

Ответить
@bhaveshgavali531
@bhaveshgavali531 - 20.08.2022 14:33

great video!

Ответить
@chandakangwa1917
@chandakangwa1917 - 31.07.2022 15:00

Минуту, это не С++ 😅

Ответить
@sonnydutch
@sonnydutch - 20.05.2022 21:04

Beginner friendly my a**, if this is supposed to be beginner friendly, ill quit . I just learned how to print hello world ,god dammnit .

Ответить
@raresmacovei8382
@raresmacovei8382 - 25.04.2022 02:28

This started really concise and then went to math and even if I sort of got the reference points of X,Y target zero and that one unit of X,Y = "1 unit", he lost me completely, with the functions, the X-XR, Y-XR etc.

Ответить
@hianokoma6328
@hianokoma6328 - 17.04.2022 02:37

Anh đức phúc hát hay quá 😍😍❤❤

Ответить
@KawaiiMariieDubs
@KawaiiMariieDubs - 16.04.2022 21:47

Friendly i wanna say it's tough for me as a beginner even i did understand this.

Ответить
@-tnb-3984
@-tnb-3984 - 20.02.2022 20:13

Sorry to necro this video, but I tried to make this on my own before watching this video, and I swear I probably wrote 4 times as much code and its 10x less efficient lol

Ответить
@DavisTibbz
@DavisTibbz - 06.02.2022 14:23

haha this was super entertaining! 😜

Ответить
@AdityaSuresheeb
@AdityaSuresheeb - 28.01.2022 00:11

What platform / editor are u using ? I am using vsc

Ответить
@timtech9361
@timtech9361 - 22.01.2022 01:29

tic tac toe is by no means a beginner project. It is very hard to build even for advanced programmers.

Ответить
@nftcryptomix
@nftcryptomix - 15.01.2022 10:22

You have an awesome style of teaching, thanks for the share

Ответить
@justinroelant293
@justinroelant293 - 13.01.2022 06:46

Why is there a comma at the end of line 4? Is it necessary?

Ответить
@diithien5676
@diithien5676 - 07.01.2022 14:55

please give me code Tic Tac Toe. Thank you

Ответить
@jamessonaiki3226
@jamessonaiki3226 - 20.12.2021 19:05

Does this work for Java??

Ответить
@cynamonstudio
@cynamonstudio - 20.12.2021 02:32

if that is a coding tut for beginners, then it is the worst one ever seen. For more advanced ppl it might be even entertaining...

Ответить
@bradmclean4988
@bradmclean4988 - 12.11.2021 02:11

This was recommended when I typed C++ projects but this looks like JS.

Ответить
@anandvijayan710
@anandvijayan710 - 01.11.2021 17:16

You are a crazy programmer

Ответить
@tompov227
@tompov227 - 25.09.2021 19:23

actually using the == operator in JS means (a == b && b == c && a == c) can be false for some values of a, b, and c so the last clause is not redundant. The example where was such that it was redundant since it was all strings but if you do `a = '0'` and `b = 0` and c = [] then a == B and B == c but a != c

Ответить
@janvimyadventures1310
@janvimyadventures1310 - 20.09.2021 19:01

What software are you using

Ответить
@palitoredondo3680
@palitoredondo3680 - 11.09.2021 02:22

What this the program ?

Ответить
@irinakalman9714
@irinakalman9714 - 09.09.2021 01:44

'Heeeelp'

Ответить
@wizwildworld2407
@wizwildworld2407 - 08.09.2021 01:12

or "Coding Challenge #???: Binary"?

Ответить
@wizwildworld2407
@wizwildworld2407 - 08.09.2021 01:00

how about "HTML"?

Ответить
@CabbageCraft
@CabbageCraft - 02.09.2021 07:04

The adamant hour optionally rock because policeman epidemiologically tumble save a tender tense chime. ignorant, greedy form

Ответить
@CabbageCraft
@CabbageCraft - 02.09.2021 06:54

The grubby gruesome seed individually love because seed initially drag barring a versed semicircle. sore, tacky almanac

Ответить
@astrofx6717
@astrofx6717 - 01.09.2021 03:23

Keep your code DRY!

Ответить
@rubenlarochelle1881
@rubenlarochelle1881 - 22.08.2021 18:24

It's so weird to watch the best programmer I know having trouble with Tic Tac Toe ahahah

Ответить
@enes1joker610
@enes1joker610 - 14.08.2021 17:35

ist das c#?

Ответить
@djkujek2748
@djkujek2748 - 13.08.2021 08:08

good, mister

Ответить
@sadboy1231.
@sadboy1231. - 09.08.2021 15:42

Dapat ipmy lagi

Ответить
@jitinbahri8291
@jitinbahri8291 - 30.07.2021 23:52

His definition of "BIGGNER FRIENDLY" is beyond oxford standards

Ответить
@rendez_vous5009
@rendez_vous5009 - 29.07.2021 18:05

Why are you so happy while coding dude ?!?!?!. I'm stressed with code wkwkwkw

Ответить
@learner4333
@learner4333 - 29.07.2021 16:03

Feeling happy and motivated watching you and also the music's are awesome.

Ответить
@fynnbrunt1178
@fynnbrunt1178 - 29.07.2021 04:23

I was the 999,444 view yay

Ответить