Arbitrary Recursion TicTacToe

  Рет қаралды 36,654

Colorize

Colorize

Ай бұрын

Пікірлер: 218
@iwersonsch5131
@iwersonsch5131 Ай бұрын
One thing that's good about recursive tic tac toe is that you can score tiebreakers by counting the smaller boxes
@plapaollapapfkjfus
@plapaollapapfkjfus Ай бұрын
You sound like someones whos name is Jeremy
@MetaTheoretical
@MetaTheoretical Ай бұрын
Can confirm: my name is not Jeremy
@Yee_.
@Yee_. Ай бұрын
that is shockingly neutral
@lukasjetu9776
@lukasjetu9776 Ай бұрын
true
@ShaneZickmann
@ShaneZickmann Ай бұрын
@@MetaTheoretical You sure about that? EDIT: or a better reply, prove it.
@farhanarieframadhan8139
@farhanarieframadhan8139 Ай бұрын
Jerma?!?!
@anthonycannet1305
@anthonycannet1305 Ай бұрын
Depth 2 is just strategic tic tack toe which is playable on cool math games. Although it’s cool that you made it go deeper than that
@Izzythemaker127
@Izzythemaker127 Ай бұрын
I've always heard it called ultimate tic tac toe
@Makowako_
@Makowako_ Ай бұрын
@@Izzythemaker127yeah same
@Rapidfire370
@Rapidfire370 Ай бұрын
Vsauce covered it
@Nyhilo
@Nyhilo Ай бұрын
Broooo I've been wanting to code this exact thing forever, but never got around to it. Massive respect.
@MetaTheoretical
@MetaTheoretical Ай бұрын
Procrastination lol
@enderwiggins8977
@enderwiggins8977 Ай бұрын
In the high school i went to, there was this one class that was a breeze, so my friend and I played one game of depth 3 over the course of 3 months. The strategy was insane.
@MetaTheoretical
@MetaTheoretical Ай бұрын
Haha thats pretty cool
@rockyblocky_guy1244
@rockyblocky_guy1244 Ай бұрын
Who won?
@spiritedparkour
@spiritedparkour Ай бұрын
@@rockyblocky_guy1244 bump aka increasing reply count so more people see
@enderwiggins8977
@enderwiggins8977 Ай бұрын
@@rockyblocky_guy1244 I did in the end, though it seemed very close throughout.
@user-uo1yn4se8r
@user-uo1yn4se8r Ай бұрын
i've played recursion tic tac toe before, the strategy is very deep. i can't even imagine playing level 3 recursion...
@matt92hun
@matt92hun Ай бұрын
Wouldn't all ties still result in a tie?
@BryanLu0
@BryanLu0 Ай бұрын
​@@matt92hunRecursion tic tac toe is not necessarily a tie game just because regular tic tac toe is a tie game, because there's the strategy of forcing which grid the other player plays in
@matt92hun
@matt92hun Ай бұрын
@@BryanLu0 Oh, so the same player can come twice in a row on the same grid?
@BryanLu0
@BryanLu0 Ай бұрын
@@matt92hun Yes, e.g. If X plays in the bottom left of any grid, then O has to play in the bottom left grid, if X then plays in the bottom left again, O is back in the same grid again, even though X didn't play in that grid
@matt92hun
@matt92hun Ай бұрын
@@BryanLu0 That sounds cool, I'll give it a try. Thanks.
@directrix777shinyshinyamyt4
@directrix777shinyshinyamyt4 Ай бұрын
I came up with Depth 2 on my own as well! Going even deeper has to be WILD!!
@Moonlite_Kitsune
@Moonlite_Kitsune Ай бұрын
All we need now is a way to zoom in and pan the board so its playable by humans
@luketurner314
@luketurner314 29 күн бұрын
Some pro tips: 1. On most CLIs (command line interfaces), you can press the up arrow key to cycle through your command history 2. In Python, there is a module you can use to parse command line arguments, called "argparse". With which you could do something like "python3 frontend․py -d 2" and prompt for the depth if it is not specified as a command line argument 3. On Windows 10 (and I'm guessing also 11) there is a way to be able to run python scripts without having to type python3 first: "PS C:\current\working\directory> frontend․py". I believe it involves a couple of Registry edits, but it's been a while and I don't remember exactly Interesting concept. Initially from the thumbnail and the beginning of the video, I thought the grid was going to automatically zoom out and expand as you play and resolve each layer (without exiting and relaunching), but I guess that would be infinite or progressive recursion not arbitrary recursion
@colevilleproductions
@colevilleproductions Ай бұрын
I have looked everywhere for the answer to how ultimate x2 tic tac toe goes and got an extremely easy answer from just watching you play a couple moves, that being that no matter where you play at what level, there is always a 3x3 playable space corresponding to that spot
@MetaTheoretical
@MetaTheoretical Ай бұрын
GitHub: github.com/LedrProjects/Recursive-Tic-Tac-Toe/tree/main
@thecatsmith
@thecatsmith 26 күн бұрын
You should pin this comment
@gallium-gonzollium
@gallium-gonzollium Ай бұрын
I wonder how high you can put that depth value before the whole system goes kaput 😂
@MetaTheoretical
@MetaTheoretical Ай бұрын
5 crahes for me after a bit haha!
@legendgames128
@legendgames128 Ай бұрын
@@MetaTheoretical Super computers might not even be able to get past 10 due to the way exponential growth works.
@deleteddeleted1940
@deleteddeleted1940 Ай бұрын
@@legendgames128 3^10=59049 is fine, it's only 59049*59049=3486784401 squares which is only 3486 megabytes, assuming 1 square is 1 byte
@CrushedAsian255
@CrushedAsian255 Ай бұрын
@@legendgames128 that would only be around a few billion squares i think, so should be possible with good code (9^10 = 3.6 billion)
@ArbitraryCodeExecution
@ArbitraryCodeExecution Ай бұрын
​@@legendgames128what
@bagusnaga01
@bagusnaga01 26 күн бұрын
this is called loose the battle win the war.
@noahchristensen3718
@noahchristensen3718 Ай бұрын
I learned the first recursive step of this game as Tic Tac Toe Fury, and I think the better version of the rules stipulates that 1) you can play in won squares, but cannot win them again, and 2) the only free (play anywhere) moves are the first one, and (possibly) when you get sent to a full square. Note that it is not full when it is won, but only after all 9 small squares are used up.
@NCXDKG
@NCXDKG Ай бұрын
You did it, you made tic tac toe 2
@ShadowKestrel
@ShadowKestrel Ай бұрын
now i want to see just how optimised i can make something like this. Definitely the base game can be super fast but implementing an automated player that runs fast on a potato would be a fun challenge
@TheIlike2playminecra
@TheIlike2playminecra Ай бұрын
I would strongly reccommend upping your mic gain or doing some processing on your audio during the editing process. Had to turn my computer to nearly max volume just to hear what you said. If this were released as a game, I'd recommend that a tie game use a different tone of shading from the shading used to highlight which board to play on next, as it could be confusing to the players, but as a proof of concept it's a really solid demo!
@mohammadazad8350
@mohammadazad8350 Ай бұрын
It's perfectly audible to me.
@alzblb1417
@alzblb1417 Ай бұрын
Make infinitely wide chess. The pieces repeat left and right. Checkmate ANY king to win. You only need to store the interacted squares (notation sequence of moves).
@shakhafire9427
@shakhafire9427 Ай бұрын
Thanks youtube for such kind of videos. Like the way you have done it. I made recursive tictactoe with depth of 2, but without gui, only console version
@MetaTheoretical
@MetaTheoretical Ай бұрын
ah cool!
@dimitri0404
@dimitri0404 Ай бұрын
Is this what tic tac toe would look like if it was made by christopher nolan? The video is only missing the inception theme.
@MetaTheoretical
@MetaTheoretical Ай бұрын
Haha i like that movie a lot!
@--REDACTED--
@--REDACTED-- Ай бұрын
Seems we had a similar idea - I implemented pretty much the same thing for my A-Level coursework, but in Rust using Raylib, and with some other features like an AI (sorta) opponent, importing/exporting games, other pieces, and a needlessly dynamic window title. I like the simplicity of yours, and also how readable your move checking code is (mine is an absolute nightmare)
@MetaTheoretical
@MetaTheoretical Ай бұрын
oh cool! any level depth or just depth 2?
@--REDACTED--
@--REDACTED-- Ай бұрын
Any depth as well - seems great minds think alike! I would link the project on github but youtube seems to disagree with me posting links
@MetaTheoretical
@MetaTheoretical Ай бұрын
@@--REDACTED-- I’m interested! could you add me on discord by the username “xyzwvut” and send it there?
@apia46
@apia46 Ай бұрын
your keyboard sounds nice
@lmfao6125
@lmfao6125 Ай бұрын
thats really cool! me and my friend came up with depth 3 tic tac toe a few weeks ago and i was thinking of coding it, but no idea how to start. this is great, well done!
@henryhart6551
@henryhart6551 Ай бұрын
Does an n-depth TicTacToe have a winning strategy? (That can be found before the universe ends…) Anyway nice elegant concept.
@MetaTheoretical
@MetaTheoretical Ай бұрын
Not that I know of. I might make a follow up discussing strategies for higher order tic tac toe. Thanks!
@geekjokes8458
@geekjokes8458 Ай бұрын
is there even a strategy for depth 2?
@Donu_tLover
@Donu_tLover 21 күн бұрын
@@geekjokes8458try luring your opponent away from a aplace they can win, and look ahead of the game. Not a 100% win strategy, but it will help.
@sebbes333
@sebbes333 Ай бұрын
*@Colorize* 1:43 You should add a 3'rd marking, for Draws, so if you play "badly enough" the DRAW might win (i guess both players lose?) (I think the Draw symbol should be a green triangle, but maybe not?)
@MetaTheoretical
@MetaTheoretical Ай бұрын
later on in the video i enable it
@sebbes333
@sebbes333 Ай бұрын
@@MetaTheoretical Cool! :D
@aloresdecat2573
@aloresdecat2573 Ай бұрын
Mr. Lambda, you have my respect, sub, AND like. Keep up the good work!
@--REDACTED--
@--REDACTED-- Ай бұрын
The background is strangely hypnotising
@EMEKC
@EMEKC Ай бұрын
Awesome! Small heads up though: you can press up arrow in most terminals to get back the last command you typed in, so you don't have to retype it each time :)
@MetaTheoretical
@MetaTheoretical Ай бұрын
Thanks!
@nbboxhead3866
@nbboxhead3866 Ай бұрын
Ah, recursion; my favourite confusion-causing technique. It has some pretty good applications, too. There's exciting stuff like fractals for CGI and then there's slightly less exciting stuff that still has applications like equation evaluation. I mention equation evaluation because of sites like Desmos that can graph functions with heavily nested inputs just fine, and I've found that it uses recursion a good bit when I looked into how to implement it. Anyway, nice program! The fact you managed to pull this off tells me you can work with abstract concepts pretty well when coding. I imagine the bugfixing for this must've been... harrowing, to say the least.
@MetaTheoretical
@MetaTheoretical Ай бұрын
Bugfixing was hours of painfully testing cases and wrap my mind around the programs structure
@MetaTheoretical
@MetaTheoretical Ай бұрын
I might make some more recursion videos if i get ideas
@tarastaras6604
@tarastaras6604 Ай бұрын
this thing is very cool man keep doing stuff, i like it
@bincho8616
@bincho8616 Ай бұрын
I also made this exact thing like 2 days ago, but i didn't bother fixing the code to work for depth>3 (nobody actually plays anything over depth=2 becasu of the exponentional growth in time spent playing) And it's wild to me that the youtube algorythm somehow found and showed me this video. Great job btw
@julianemery718
@julianemery718 Ай бұрын
So it seems recursive Naughts and Crosses is crazy enough so a board game with more than a 3x3 grid of squares would be crazy. I mean, imagine recursive chess, that game is long enough on a single layer, it would take a lifetime to complete if it was even 2 layers deep
@mozvi1436
@mozvi1436 Ай бұрын
Hey that looks like the tictactoe vsauce made a short on ! That's really cool! Did you get inspired or is it just a coincidence?
@MetaTheoretical
@MetaTheoretical Ай бұрын
coincedence!
@andrewpinedo1883
@andrewpinedo1883 29 күн бұрын
Interesting coincidence. I was also just thinking about 3-tac-toe, and devised the exact same ruleset.
@aloresdecat2573
@aloresdecat2573 Ай бұрын
thanks for the tutorial!
@i_cam
@i_cam Ай бұрын
didn't have time to watch the whole vid so you might have said it, but do you have a download or a github repo where we can check this out? would love to try and play a couple games
@peaktheweak
@peaktheweak Ай бұрын
yo this is actually sick
@Cool_Bungle
@Cool_Bungle Ай бұрын
Criminally underrated.
@vladloukine2813
@vladloukine2813 Ай бұрын
I used to play Mega Tic Tac Toe (Depth 2) with my friends, but after deciding that was repetitive, I invented GIGA TIC TAC TOE (depth 3)
@Donu_tLover
@Donu_tLover 21 күн бұрын
maybe depth 4 is TERA tic-tac-toe
@vladloukine2813
@vladloukine2813 21 күн бұрын
@@Donu_tLover I made tera tic tac toe but nobody wanted to play that
@TheGovernment-wz1oy
@TheGovernment-wz1oy 3 күн бұрын
Where did you get your desktop background it’s so nice
@donit.
@donit. Ай бұрын
I like the mechanic how you can influence what area the next move will be with your move. Is there a specific reason you implemented it, like did the game not work if players can always tic any box?
@MetaTheoretical
@MetaTheoretical Ай бұрын
Its just the agreed upon rules for the game i didnt invent the rules
@terabyte6903
@terabyte6903 26 күн бұрын
firefox? nah. bro got ICEFOX
@Carpalhat
@Carpalhat Ай бұрын
I like your video, good job. This is cool, I'm trying to learn python but I need to be mkre consistent. You have my sub
@MetaTheoretical
@MetaTheoretical Ай бұрын
appreciate it !!
@Lorem_the_Ipsum
@Lorem_the_Ipsum Ай бұрын
Ah, i know an enjoyer of mechanical keyboards when i hear it.
@MetaTheoretical
@MetaTheoretical Ай бұрын
Haha! Indeed I am
@foreverleveling
@foreverleveling Ай бұрын
Interesting concept, I've never sat down to play with this kind of ideas. Thanks for sharing the repository to take a look at it. Something else that catches my curiosity, could you share with me your animated wallpaper, It gives me a retro arcade room vibe. I'll send you my best regards.
@Nen_niN
@Nen_niN Ай бұрын
I remember I played a game on steam called Ultimate Tic-Tac-Toe several years ago, which had this level recursion mechanic. I don't think it went beyond depth 1 though.
@minhuang8848
@minhuang8848 Ай бұрын
definitely needs iterative animations, maybe log-ramping it as it goes on. Drawing each stroke, too. Fun little idea though
@amazingbutno5303
@amazingbutno5303 Ай бұрын
You could make an online version where everyone is one of two teams and you play on a massive grid
@MetaTheoretical
@MetaTheoretical Ай бұрын
True
@laiton2
@laiton2 Ай бұрын
very interesting concept!
@MetaTheoretical
@MetaTheoretical Ай бұрын
Thanks!
@thecatsmith
@thecatsmith 26 күн бұрын
I need a phone app version, (preferably on iOS) maybe with a zoom function to show either the whole board or the play location
@Redditard
@Redditard Ай бұрын
Wait, can i this? BEAUTIFUL!
@tessenary_
@tessenary_ Ай бұрын
i remember vsauce making a short about this, but it was only level 2.
@adeptmage2293
@adeptmage2293 Ай бұрын
Wait, how did movement in depth 3 work? I'm not quite getting it yet.
@th1v5
@th1v5 Ай бұрын
Cool concept and execution, but in future videos could you talk louder/increase the volume? Even with both my youtube and computer's volume sliders maxed out, I still had to turn on captions as I could not hear you. Thanks!
@MetaTheoretical
@MetaTheoretical Ай бұрын
sure
@lcajueiro
@lcajueiro Ай бұрын
ULTIMATE ULTIMATE TIC TAC TOE
@joshuan.
@joshuan. Ай бұрын
Ok, hear me out: 5D 3rd depth Tic Tac Toe with Multiverse Time Travel
@splatplays
@splatplays Ай бұрын
5D chess, look it up
@joshuan.
@joshuan. Ай бұрын
@@splatplays what in the world do you think I was referencing?
@thetexturepackcell
@thetexturepackcell Ай бұрын
how is your taskbar like that and the wallpaper moving??????
@smugless191
@smugless191 18 күн бұрын
Im gonna spend years playing depth 6 Tic Tac Toe with a friend only to get a draw.
@thepromaster7868
@thepromaster7868 Ай бұрын
this is really underrated, but im just gonna ask how did you make your desktop background move and your task bar transparent?
@MetaTheoretical
@MetaTheoretical Ай бұрын
wallpaper engine for background translucenttb for taskbar
@thepromaster7868
@thepromaster7868 Ай бұрын
Tysm!
@ImpossibleEvan
@ImpossibleEvan 20 күн бұрын
You shoukd do if a game ties it breaks down the one square into another recurse
@apia46
@apia46 Ай бұрын
nice work, by the way
@lePirateMan
@lePirateMan Ай бұрын
Great
@bomblii
@bomblii Ай бұрын
this is so cool
@cabobsstopmotion4983
@cabobsstopmotion4983 Ай бұрын
Bravo man!
@Adomas_B
@Adomas_B Ай бұрын
You can press up arrow in CMD to repeat previous command
@VioletJewel1729
@VioletJewel1729 Ай бұрын
press UP in the terminal :)
@raslei_
@raslei_ Ай бұрын
ohhh dude i played depth 2 at school with a friend, we just called it tic tac toe 2, i honestly didnt expect to find a video on this
@HoloTheDrunk
@HoloTheDrunk Ай бұрын
Neat project, I might force students to do something similar... time will tell
@jryde421
@jryde421 Ай бұрын
I'd play this
@hashtagornah
@hashtagornah Ай бұрын
Neat stuff
@user-hi8jv6cw8n
@user-hi8jv6cw8n Ай бұрын
That's awesome, I wonder are depth 2 and 3 are solved? i.e. is there a perfect strategy to never lose? like depth 1 (regular tic tac toe)
@MetaTheoretical
@MetaTheoretical Ай бұрын
nah dont think so
@Digby8
@Digby8 Ай бұрын
Sick!
@kattattack1857
@kattattack1857 Ай бұрын
What happens if the designated board for the next turn is already resolved? Like X has won the quadrant already, but a move on another square says we need to play there. What do you do?
@MetaTheoretical
@MetaTheoretical Ай бұрын
You play in the board that contains that board. If that board is full too then u play on the board that contains that. etc
@arnabbiswasalsodeep
@arnabbiswasalsodeep Ай бұрын
Depth 3 tic-tac-toe = soduku tic-tac-toe
@ThomasHemming-jc6tq
@ThomasHemming-jc6tq Ай бұрын
How did you do this this is amazing
@MetaTheoretical
@MetaTheoretical Ай бұрын
github.com/LedrProjects/Recursive-Tic-Tac-Toe
@ThinkWithGames
@ThinkWithGames Ай бұрын
Cool game!
@theunknown4834
@theunknown4834 Ай бұрын
How do you have a moving background
@elliott6158
@elliott6158 Ай бұрын
Cool math games has entered the chat
@nimjabeb3910
@nimjabeb3910 Ай бұрын
I have yet to complete anything higher than the layer 3
@marksmod
@marksmod Ай бұрын
that background tho
@FerriitDev
@FerriitDev Ай бұрын
I can see why u chose OOP for ur project
@EHMM
@EHMM Ай бұрын
JEREMY
@nameanonymous
@nameanonymous Ай бұрын
What an interesting proyect!, I remember playing with my friends tic tac toe with depth 2 XD But anyways, hoy did you manage to create that? Can you share us your code :0?
@MetaTheoretical
@MetaTheoretical Ай бұрын
its some recursive magic! Yeah ill add it to the description when im not feeling lazy haha!
@MetaTheoretical
@MetaTheoretical Ай бұрын
I linked my github to this channel
@andrewzhang8512
@andrewzhang8512 Ай бұрын
@@MetaTheoretical ur special bro
@MetaTheoretical
@MetaTheoretical Ай бұрын
@@andrewzhang8512 what
@UnknownZYX_4085
@UnknownZYX_4085 Ай бұрын
depth ∞
@moondancerproductions8708
@moondancerproductions8708 Ай бұрын
An interesting idea. Do you plan on releasing the source code?
@MetaTheoretical
@MetaTheoretical Ай бұрын
Its on my github which is linked to my channe
@bobofthekerbals9797
@bobofthekerbals9797 27 күн бұрын
I tried to play depth 3 on paper one time but it took too long and we never finished
@EthanMeleen
@EthanMeleen Ай бұрын
Is the code for this project on github?
@Starblazer-oc4nt
@Starblazer-oc4nt Ай бұрын
Epic
@CharlieJParker
@CharlieJParker Ай бұрын
Sick code!, (now make it 3d hehehe)
@minamur
@minamur Ай бұрын
cool desktop
@victoriamacarthur8906
@victoriamacarthur8906 Ай бұрын
depth 3 is just osu
@taskfailedsuccesfully738
@taskfailedsuccesfully738 Ай бұрын
It's so stupid I love it
@taskfailedsuccesfully738
@taskfailedsuccesfully738 Ай бұрын
I really want to play it but I don't know how to use Python
@linuslucke3838
@linuslucke3838 Ай бұрын
Now add 3D(or more if you want to)
@szulat
@szulat Ай бұрын
content loudness -20.9dB 😭
@Destinky
@Destinky 25 күн бұрын
TIC TAC TOE, STOP DOING MITOSIS
@Piokoxer
@Piokoxer Ай бұрын
Depth 2 tic tac toe is actually a much better game than the original lol
@simonyi912
@simonyi912 Ай бұрын
Chess 2.0
@SupersuMC
@SupersuMC 28 күн бұрын
Shut up and take my money.
@MetaTheoretical
@MetaTheoretical 28 күн бұрын
What lol?
@SupersuMC
@SupersuMC 28 күн бұрын
@@MetaTheoretical I would love to play this as a fully-fledged game. Just saying.
@zwatotem
@zwatotem Ай бұрын
Bro what is that color scheme
@godnmaste
@godnmaste Ай бұрын
is the code anywhere
Minesweeper With Multicolor Square Roots
35:35
Icely Puzzles
Рет қаралды 13 М.
Making a difficult game about fitting in - Acerola Jam 0
19:17
jess::codes
Рет қаралды 177 М.
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 3,3 МЛН
They RUINED Everything! 😢
00:31
Carter Sharer
Рет қаралды 24 МЛН
Cute Barbie Gadget 🥰 #gadgets
01:00
FLIP FLOP Hacks
Рет қаралды 43 МЛН
🍕Пиццерия FNAF в реальной жизни #shorts
00:41
Simulating Particle Life
18:18
Digital Genius
Рет қаралды 140 М.
I Made a Neural Network with just Redstone!
17:23
mattbatwings
Рет қаралды 536 М.
Octagon - Adofai Custom execpt made in scratch
1:43
Hypernova386
Рет қаралды 2,5 М.
15 Sorting Algorithms in 6 Minutes
5:50
Timo Bingmann
Рет қаралды 24 МЛН
How I made a 3D Level in a 2D Game
24:28
Spu7Nix
Рет қаралды 3,1 МЛН
Cartoon Physics Are More Logical Than You Think
10:16
BigBlueBackpack
Рет қаралды 441 М.
Turning Math Into Art With Beautiful Fractals
8:45
Numb3r Tr33
Рет қаралды 225 М.
Non-Euclidean Worlds Engine
5:15
CodeParade
Рет қаралды 11 МЛН
How to average color
7:46
Gneiss Name
Рет қаралды 118 М.
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 3,3 МЛН