AI's Game Playing Challenge - Computerphile

Поділитися
Вставка
  • Опубліковано 16 лис 2024

КОМЕНТАРІ • 787

  • @TheAtb85
    @TheAtb85 5 років тому +181

    At 10:08 you can see Rob deciding that he will turn the whole universe into a paper factory, but having his decision overran by his safety algorithm, on the argument that turning the universe into factories would lower his utility function of learning from, and sharing ideas with, different beings.

    • @DrSpooglemon
      @DrSpooglemon 3 роки тому +6

      Underrated comment.

    • @tomonetruth
      @tomonetruth 2 роки тому +2

      he somehow got to the big red button

  • @HammerspaceCreature
    @HammerspaceCreature 7 років тому +1095

    Camera Guy: 'I just wan't to make sure people understand what we're talking about'
    Scientist guy: 'Yeah yeah, right right. So you draw your octothorp'
    Camera Guy: [sighs internally]

    • @maherhayek9696
      @maherhayek9696 5 років тому +23

      Hahahaha exactly!

    • @irrelevant_noob
      @irrelevant_noob 5 років тому +68

      HammerspaceCreature: 'I just wan't to [...]'
      Linguists: [sighing internally]

    • @avrahamishshalom1799
      @avrahamishshalom1799 5 років тому +4

      @@irrelevant_noob Non-linguist here: what's the issue with "just want to"?

    • @irrelevant_noob
      @irrelevant_noob 5 років тому +15

      Avraham Ish Shalom care to look again at what i actually quoted? :-B

    • @zyaicob
      @zyaicob 5 років тому +4

      Octothorpe*

  • @ChaosPootato
    @ChaosPootato 8 років тому +1060

    I really like this guy. He's interesting and clear and even funny. He's cool

    • @hypersapien
      @hypersapien 8 років тому +47

      He seems like he has more knowledge than someone his age should have, I'm always impressed with how he explains things.

    • @whig3982
      @whig3982 8 років тому +9

      hypersapien age doesn't matter, after 15, someone could get HUUUGE amounts of knowledge.

    • @hypersapien
      @hypersapien 8 років тому +24

      Procrastinator cabbagehair no doubt. That doesn't make it any less impressive to be ahead of the curve, though.

    • @hypersapien
      @hypersapien 8 років тому +2

      Danni jensen haha

    • @samh1022
      @samh1022 8 років тому +12

      I do like his sense of humor. Easy person to listen to. Great video!

  • @BenKarcher
    @BenKarcher 8 років тому +290

    I just noticed that at the beginning of the video ti says and at the end it says that is awesome.

    • @CollinRapp33
      @CollinRapp33 8 років тому +44

      +Ben Karcher I believe it used to just use at both ends, until someone they interviewed a while back pointed it out in a video.

    • @helliscold8918
      @helliscold8918 8 років тому +5

      +cur33 recognized
      nsa monitoring you.

    • @rmm2000
      @rmm2000 5 років тому +8

      YOU

    • @zyaicob
      @zyaicob 5 років тому +11

      @@rmm2000 you

  • @Zach-mv3le
    @Zach-mv3le 8 років тому +308

    *Looks at board in dismay* "All I do is win"

  • @apefu
    @apefu 8 років тому +249

    Dammit. This episode ends when it starts getting interesting.

  • @mathiasperricone2370
    @mathiasperricone2370 6 років тому +44

    "we are gonna need more paper..and a significant larger universe to put that paper in"

  • @glitchsmasher
    @glitchsmasher 8 років тому +131

    This guy is the best person on Computerphile. He should have a channel of his own.

    • @glitchsmasher
      @glitchsmasher 8 років тому +2

      +Lordious No way

    • @reuben8856
      @reuben8856 8 років тому +6

      +glitchsmasher Rob Miles for PM.

    • @seanld444
      @seanld444 8 років тому +5

      Tom Scott is better. But I like this guy too.

    • @kevskevs
      @kevskevs 8 років тому +2

      +glitchsmasher This guy and Professor Brailsford.

    • @nand3kudasai
      @nand3kudasai 8 років тому

      +glitchsmasher totally agree

  • @jumbochamploon2591
    @jumbochamploon2591 8 років тому +468

    there are only 3 starting moves in noughts and crosses (corner, side, centre)

    • @wesofx8148
      @wesofx8148 8 років тому +34

      Clever

    • @jlw9113
      @jlw9113 8 років тому +88

      +Mormeemo_ Good point, You could reduce the tree by not counting mirrored states . Similarly there are only 3 types of pieces in a Rubik's cube (corner, side,and center).

    • @CeoLogJM
      @CeoLogJM 8 років тому +7

      It's also much more impotant who starts in Tic tac toe.

    • @BenKarcher
      @BenKarcher 8 років тому +32

      +‫ויאמר סבבה!‬‎ naw its always a tie no matter who starts

    • @FlumenSanctiViti
      @FlumenSanctiViti 8 років тому +8

      +Jane Black This would be the basis for a numberphile video ;)

  • @matteo-ciaramitaro
    @matteo-ciaramitaro 8 років тому +36

    I'm so happy he called it an octothorpe

  • @TimmacTR
    @TimmacTR 8 років тому +18

    Love how clear is this guy's explanation..

  • @cl9282
    @cl9282 8 років тому +424

    Haircut lookin sharp

    • @MastaSmack
      @MastaSmack 4 роки тому +1

      Keeping important things in mind.

  • @demonstructie
    @demonstructie 8 років тому +292

    Rob Miles is my favorite person on Computerphile (and maybe on youtube as a whole)

    • @sweetspotendurance
      @sweetspotendurance 8 років тому

      me too!

    • @longleaf0
      @longleaf0 8 років тому +2

      Be great to see more videos with Rob in

    • @Hans-jc1ju
      @Hans-jc1ju 8 років тому +5

      Tom Scott

    • @GtaRockt
      @GtaRockt 8 років тому

      +Hans Schülein or Professor Brailsford

    • @rooneye
      @rooneye 8 років тому +1

      +demonstructie Hmmmm I think im quite the opposite, when watching Computerphile videos I often find myself thinking "I'd love to punch Rob Miles in the mush"... I could never punch Dr Steve Bagley in the mush! Or anywhere else for that matter :P

  • @nicholasguirado9065
    @nicholasguirado9065 4 роки тому +12

    9:14 "what can I do? All I do is win"
    That will be on my grave stone

  • @kerberossi
    @kerberossi 8 років тому +220

    2:00 The chessboard is set up wrong

    • @Computerphile
      @Computerphile  8 років тому +124

      +Amir Kerberos Damn those public domain pictures! >Sean (spent so long making sure my CGI board was right I missed this, sorry!)

    • @kerberossi
      @kerberossi 8 років тому +30

      ***** Oh my god, you replied! Hehe, what a lovely surprise. As someone who really likes chess this hurt me plenty

    • @itecnus3490
      @itecnus3490 8 років тому +16

      +Computerphile I forgive you :D Loved the video

    • @ChessNetwork
      @ChessNetwork 8 років тому +43

      +Amir Kerberos It's not the first time, and will certainly not be the last time it happens...unfortunately. Ugh! :D

    • @Lufernaal
      @Lufernaal 8 років тому +5

      +ChessNetwork you watch computerphile too? that's so cool!

  • @HanBurritoz
    @HanBurritoz 8 років тому +181

    17:20 "This margin is too narrow to contain" haha

    • @1_adityasingh
      @1_adityasingh 4 роки тому +11

      Fermat's Last Theorem

    • @robertelessar
      @robertelessar 4 роки тому +7

      @@1_adityasingh I paused the video when he said that and immediately scrolled down into the comments to see who had mentioned it! ^_^

    • @aforcemorepowerful
      @aforcemorepowerful 3 роки тому +1

      Always love a Pierre de Fermat reference.

  • @aeroscience9834
    @aeroscience9834 8 років тому +46

    "This margin is too narrow to contain" I see what you did there!

  • @MariusSchar
    @MariusSchar 8 років тому +18

    I very much enjoy the videos with Rob Miles. He's great at explaining.

  • @hypersapien
    @hypersapien 8 років тому +42

    Love Rob Mile's videos!

  • @S4MJ4M
    @S4MJ4M 8 років тому +45

    17:15 you gotta plug a Fermat reference in there!

    • @reptariguess
      @reptariguess 8 років тому +4

      +Sam J I noticed that too! Funniest thing I've heard today, haha

  • @salmjak
    @salmjak 8 років тому +21

    Please do a follow up on this about the Monte Carlo algorithm that became popular for GO AI (and is a lot like the minimax algorithm) before you go into how alphago uses it together with other algorithms.

  • @DeathsOnTheYAxis
    @DeathsOnTheYAxis 8 років тому +3

    I love the way this guy talks I don't know why. I feel smart whenever he says something without explaining it and I understand him.

  • @dwalters98
    @dwalters98 5 років тому +6

    Shougi (Japanese chess ) was also a hard one for them to computer apparently, but was imbetween chess and go XD Can still put values on the pieces, but many more possible branches because one of your options is to take a captured piece and return it to the board as your own. Also almost all of the pieces can promote, but you have the option of whether you want to promote or not in most cases. So many options added XD

  • @MagmaMusen
    @MagmaMusen 8 років тому +123

    Love these videos!

    • @Computerphile
      @Computerphile  8 років тому +17

      +MagmaMusen thanks! >Sean

    • @seanp4644
      @seanp4644 8 років тому +8

      MagmaMusen hey magma! Didn't expect to see you here! Keep up the great work buddy!

    • @许玄清
      @许玄清 4 роки тому

      hi

    • @hadireg
      @hadireg 3 роки тому

      addictive channel!

  • @DaveLH
    @DaveLH 7 років тому +4

    The other issue too I guess is that in chess the computer usually has a database -- the "Opening Book" -- That guides it through the first ten or so moves without having to construct game trees from the get-go. And I'm no expert, but I would guess that it also has a database to search for patterns/combinations in middle and endgame positions, since this is what hardcore human chessmasters do. But I can see how that would be impossible with Go -- It's simplicity paradoxically makes it so much harder to program.

  • @MrSlowestD16
    @MrSlowestD16 8 років тому +6

    Ahh I remember doing min max algorithm + alpha/beta pruning in my AI 101 class. Good stuff, brings back memories!

  • @bucelliLeo
    @bucelliLeo 7 років тому +2

    I like this Rob Miles guy; he's not only a computer scientist, but also a philosopher.

  • @sachatostevin6435
    @sachatostevin6435 5 років тому +5

    "This margin is too narrow to contain". Legendary quote!! Respect!!

    • @RodelIturalde
      @RodelIturalde 2 роки тому

      Best part of the video. Such elegance.

  • @SOLAR_WillToWin
    @SOLAR_WillToWin 8 років тому +8

    "I just want people to know what you're talking about" ... "So you just draw your octothorpe" lol

  • @JasonPSchafer
    @JasonPSchafer 8 років тому +1

    I am so glad I found this channel. currently coding a connect four AI in java and I'm trying to figure out how to apply minimax to it. It's very ironic I found this video the same day I started working on it.

  • @PaulBunkey
    @PaulBunkey 8 років тому +56

    "The problem of recursion is the problem of recursion" ;)

    • @jessstuart7495
      @jessstuart7495 7 років тому +1

      Reference this statement for the answer to the "problem of recursion".

  • @skroot7975
    @skroot7975 8 років тому +68

    I'd like a vid about Microsofts Twitter AI. :-3

    • @Adamlovag1
      @Adamlovag1 8 років тому +6

      I love the people like you xD

  • @InfinityDz
    @InfinityDz Рік тому +1

    These are the best damn videos about AI on UA-cam, and having subscribed to this channel back in 2012, I expected no less from it.

  • @Keex11
    @Keex11 8 років тому

    Nice to see that the videos about complex stuff are given enough time lately. Thanks.

  • @joshinils
    @joshinils 8 років тому +80

    #octothorpe

    • @jeffirwin7862
      @jeffirwin7862 8 років тому +4

      +TheJoshinils #hashtag #pound #lb

    • @knuti27
      @knuti27 4 роки тому

      Three player noughts and crosses:
      4x4 board, try to get rows of three, player three draws double crosses

  • @ThaBlueAlien
    @ThaBlueAlien 8 років тому +69

    interesting and entertaining, but not much is talked about the subject itself

  • @matthewnemetchek1990
    @matthewnemetchek1990 8 років тому +3

    I really like Rob Miles! Keep making videos with him!

  • @JeredMastersAustralia
    @JeredMastersAustralia 3 роки тому +1

    17:20 "this margin is too narrow to contain" - love it

  • @RandomNullpointer
    @RandomNullpointer 8 років тому +28

    Someone has already done the diagram for you ;)
    on xkcd 832

  • @majorgnu
    @majorgnu 8 років тому +2

    4:36 That's an *awesome* window manager you've got there. ;)
    Also, cool FSF sticker.

  • @notthedroidsyourelookingfo4026

    5:22: "The problem with recursion is [...] recursion."
    Nice.

  • @benjaminw2194
    @benjaminw2194 2 роки тому

    Always a delight to watch these discussions!

  • @bastianboll9447
    @bastianboll9447 8 років тому +10

    This margin is to narrow to contain...
    I like this guy :D

  • @PaulKnutsonSther
    @PaulKnutsonSther 8 років тому +3

    17:19
    "This margin is too narrow to contain..."
    I love this guy

  • @hosmanadam
    @hosmanadam 5 років тому +1

    Very clear, easy to follow, with great examples, as always.

  • @Tutorp
    @Tutorp 8 років тому +1

    Noughts and crosses is actually a tad bit simpler than it's made out to be here. Due to symmetry, you can collapse the first move into three branches, and the second moves into five branches (or two, for the first move of taking the middle). That still leaves us in the same ballpark of possible moves (~75 000 instead of ~363 000), though.

  • @Double-Negative
    @Double-Negative 7 років тому +2

    with tic-tac-toe, the symmetry of the board helps, essentially making it only 3 possible choices turn 1

  • @RINB3R
    @RINB3R 8 років тому +9

    "this margin is too narrow to contain" haha I love this guy

  • @kingscrusher
    @kingscrusher 8 років тому +17

    The interesting thing about minimax is that even the strongest computer might in a practical sense play worse than a human weak player. In the case theoretically of someone with a losing position - humans will play for traps. They will play moves knowing that they are not the best but might swindle the opponent via a neat tactical idea. A computer on the other hand will not try for such swindles or traps and instead always try and play objectively the best move. The 'minimax' is always rational like Mr Spock - assuming the best possible moves for both sides. But this doesn't help if one is already in a losing position. Humans basically know when to take a gamble. Nice video though - clarified quite a bit about minimax and how values are taken back up the tree if possible and the role of heuristics. Many thanks, K

    • @Tsuyara
      @Tsuyara 8 років тому +3

      +kingscrusher Minimax isn't rational, because if you know you will win not win by playing it safe, not taking a risk is irrational.

    • @Tsuyara
      @Tsuyara 8 років тому +4

      kingscrusher
      You are aware that programs are more than capable of that already? Which is why they utterly dominate humans at chess and have been doing so for over a decade?
      And if you watch things like the match of AlphaGo against Lee Sedol, the program was better at looking at the wider context, while the human commentators and Lee Sedol were more limited in their perception.

    • @kingscrusher
      @kingscrusher 8 років тому

      +Tsuyara That (AlphaGo) is "real AI" as opposed to fake AI. Demis Hassabis and his company were modelling real brain neurones - not mucking around with brute force algorithms. That's why his company was bought by Google for a huge amount of money. The implications as far as I can see go beyond gaming. Fake AI has been the obsession of computer scientists for many many years. Cute little recursive algorithms etc. That is "AI" in the really "Artificial" sense - trying to create a mathematical model for creating move choices based on those models.

    • @Tsuyara
      @Tsuyara 8 років тому

      kingscrusher
      But you are aware that they only had to resort to that because the computation time for a 'perfect' solution was far too high and it had nothing to do with the program not seeing the wider context (at which AI is generally better, as they are not limited by human nature).

    • @kingscrusher
      @kingscrusher 8 років тому

      +kingscrusher BTW returning to the core of the video - "Minimax" - in chess terms, on a human to human level, quite often I believe that the stronger the opponent one is playing, the more one should really believe the opponent will "Min-max" you - i.e. minimise your maximum. But say in blitz chess or bullet chess and especially against lower rated players, you can often just be really ambitious and ignore a lot of the time the "Mini-max" aspect. This might be at the heart of the concept of playing "solidly" - i.e. in such a way that it doesn't matter if the opponent is much stronger, you are trying to play the best possible moves and really expect a "Min-maxisation" of your chances from the opponent.

  • @solace1369
    @solace1369 8 років тому +21

    The tic tac toe tree can be simplified. There are not 9 opening moves but only 3. The edge, the corner and the middle.

    • @bestproductable
      @bestproductable 5 років тому

      No it also come to which side left or right or up or down and which corner top left, top right, bottom left or bottom right.

    • @ahmadaman6979
      @ahmadaman6979 5 років тому +5

      @@bestproductable you didn't get it dude lol

    • @user-zb8tq5pr4x
      @user-zb8tq5pr4x 4 роки тому

      no that wouldn't work, because the following moves do depend on where the first move was, so the tree would actually get more complicated with more moves, not simpler.

    • @knuti27
      @knuti27 4 роки тому +2

      @@user-zb8tq5pr4x no, you could just rotate the board to make all the corner moves and all the outer middle moves look the same... Kind of

  • @SirReptitious
    @SirReptitious 8 років тому +6

    To this day, it still amazes me that it was possible to program a chess game for the Atari 2600! A machine that has only 128 BYTES of RAM, and only 4 Kilobytes of program space in the cartridge(which was later expanded to 8K). It's because of this that I am surprised that it took this long to write a program to play Go. Guess that shows how much more complicated it is than chess!

    • @Schindlabua
      @Schindlabua 8 років тому +1

      +SirReptitious I think the main reason for that is that everyone and their mother was doing chess AI in the 80s. There was a total craze about them and lots of prizes to be won, and that just didn't happen with Go. I do think that Go is quite a bit harder to do computationally but if people had put in the same amount of effort that they put into chess we would have probably gotten decent Go AIs a lot earlier.

    • @kerberossi
      @kerberossi 8 років тому

      It's not as complicated if you play on a 9x9 Go board. Chess can be expanded in the same way, for example Tamarlane's chess.

    • @florianh.6256
      @florianh.6256 8 років тому

      +SirReptitious He gave the answer in the video: You can effectively judge a boardstate of chess. Number of pieces, pieces are more valueable than others, states where you can attack 2 pieces at once. This enables you to make educated guesses on the best move by just looking ahead only a few turns and thus you don't need much memory to keep states in. With go this situation is completely different. Not only have you much more possible moves, but you also cannot judge a boardstate efficiently. There are other factors too: The board of go is bigger - more time to evaluate the state, more memory needed.
      To cut this short: The classic min-max strategy is not working for GO and complex learning neural networks are a kinda new thing.

    • @SirReptitious
      @SirReptitious 8 років тому +1

      Florian H.
      Yes, I watched the entire video and I understood what they said. I don't know if you have ever programed before, but to program a chess game in only 4KB of space(I don't think it used an 8KB cartridge, but not 100% sure), that ran on a *1.19 MEGAHERTZ* CPU that had only 128 BYTES of ram, is an incredible feat of programming..
      It was only a matter of time before the hardware and software was enough to make Go. It's still a noteworthy milestone, just as Deep Blue and Watson are for IBM. But I am still more impressed with chess on the 2600. ;-D

    • @cigmorfil4101
      @cigmorfil4101 3 роки тому

      A Sinclair zx81 (Timex 1000) with a total of 1K (1024 bytes) RAM (the Timex version may have had 2k, but an unexpanded Sinclair ZX81 original only had 1K of static ram) had a chess program written for it; that 1K RAM held:
      Screen output (memory mapped),
      System variables (probably very few),
      The actual chess program,
      Any data the chess program required, including processor stack.
      There was no 4k for just program - that should amaze you.

  • @yuyurtrtrt2160
    @yuyurtrtrt2160 8 років тому +132

    Haha the margin is too narrow to contain

    • @aenorist2431
      @aenorist2431 8 років тому +4

      +minshwan tang Did not really expect 7 likes that got that quote so early in. Very nice surprise.

    • @baboomboy
      @baboomboy 7 років тому

      minshwan tang yes

    • @1_adityasingh
      @1_adityasingh 4 роки тому +1

      Fermat's Last Theorem

  • @winuxworx
    @winuxworx 4 роки тому +1

    Its difficult to implement brute force search from exchanges of moves between players alone to win a go game because it cannot find territorial pattern on the board. Instead, we can use search algorithm to find a "potential" territory that can be developed by both players and provide strategy to build your own while destroying the other at the same time. Now based on this principles, the search algorithm will nominate moves that best fits the strategy.

  • @JonTheGeek
    @JonTheGeek 5 років тому +17

    "This is why having a computer that could play chess was such a mile stone..."
    And now computers everyone own can probably outplay you in chess.

  • @roguedogx
    @roguedogx 8 років тому

    very interesting. I like that someone is explaining AI in a manor where its specific enough to be useful but not so confusing one gets completely lost.

  • @arthurcharpentier32
    @arthurcharpentier32 2 роки тому

    17:25 "this margin is too narrow to contain..." good reference Rob :)

  • @hiten_style
    @hiten_style 7 років тому +2

    "I just want to make sure people understand what we're talking about."
    *2.5 seconds later*
    "You draw your octothorpe..."

  • @cacheman
    @cacheman 8 років тому +10

    Redeemed from previous video. Good going.

  • @paulbottomley42
    @paulbottomley42 7 років тому +3

    You know you're talking to a mathematician when he just casually drops the word "octothorpe" while talking about noughts and crosses XD

  • @rkpetry
    @rkpetry 8 років тому

    There are two classes of recursion: 1. Where each step is the same function at its own position or level, e.g. factorial, possibly multidimensional and indices may reverse their sense of direction, e.g. the partition array, and, 2. Where each step expands by inserted related function between sub-ranges, e.g. folding-and-90°-unfolding a strip of paper...

  • @lexagon9295
    @lexagon9295 8 років тому

    As someone who's done quite a bit of game theory, I'm happy that Numberphile has finally brought up subgame perfect Nash equilibria/rollback analysis.

  • @jessejordache1869
    @jessejordache1869 2 роки тому +1

    Getting a computer to accurately evaluate a chess position isn't exactly trivial either. Matter of fact, Neural Networks are the only machine entities that aren't fooled several times in 100 games or so. The NN correlates as many discrete values it can with winning, losing, and drawn positions, which turns out to be far more accurate than any human or human derived heuristic.
    The problem with Go is the branching factor is so much larger than chess.

  • @derekmcdaniel6029
    @derekmcdaniel6029 6 років тому

    It's actually easy to do the full min-max tic-tac-toe tree if you account for symmetry, 'forced' moves, and 'transpositions'(the same moves are done in a different sequence).
    There are only 3 possible first moves: the center, a middle edge, or a corner.
    1. x: center
    2. o: middle edge
    3: x can 'force a win' by going in a corner next to the 'o'.
    4: o: opposite corner of last play.
    5: x: in square touching both x's
    6: o: blocks one run, but the other is open, so x wins.
    2. o: corner
    3. x: opposite corner
    4. o: any middle edge lets x force the win.
    4. o: any corner is a draw.
    1. x: corner
    2. o: middle edge
    3. x: center, x forces a win with same strategy as above.
    2. o: corner
    3. x: any corner is winning for x.
    2. o: center
    3. your best shot is playing the opposite corner, then you win if o plays a corner, draw otherwise.
    1. x: middle edge (most, if not all ways for x to force a win will just be a transposition of the game plays from the first two strategies), but mostly this is a lot of draws.
    While this summarizes a lot, it gives you the basic idea. With symmetries, links to transpositions, and truncating forced moves, you could fit the tic tac toe min-max tree on a single page of legibly hand written boards,

  • @mihailazar2487
    @mihailazar2487 6 років тому +3

    And if we win, the board in this state we can call it a "One", 'cause we've "Won", right ?
    Brilliant

  • @fiskfisk33
    @fiskfisk33 3 роки тому +1

    "I just want people to understand what you're talking about"
    "...so yo draw an octothorpe"

  • @andreas.karatzas
    @andreas.karatzas 3 роки тому +1

    - "Come on, lets draw it!"
    (Two minutes later)
    - "You know what, life is too short."

  • @sator666666
    @sator666666 8 років тому +4

    "This margin is too narrow to contain..." from Fermat's Last Theroem

    • @CanuckMonkey13
      @CanuckMonkey13 8 років тому

      +Artur Czekalski Apparently, from many of his theories; some Numberphile video mentioned that he did this all the time!

  • @GhostEmblem
    @GhostEmblem 8 років тому +18

    So are you going to do a video on how did google do it?

  • @iamjimfan
    @iamjimfan 4 роки тому

    An avatar 1-dan could beat me spectacularly in game of go at 9-stone handicap. I really admire complexity of human mind and appreciate how computer can solve complex problem that humanity had been working on it for thousands of years

  • @UberMathNerd
    @UberMathNerd 7 років тому +1

    Excellent reference!!!! "This margin is too narrow to contain..."

  • @andrewxc1335
    @andrewxc1335 8 років тому +2

    Tic-Tac-Toe (Naughts & Crosses) is easier when you factor in symmetry. There are really only three moves for the first player: Center, Corner, Middle-Edge.
    The second player only has TWO options for a first player Center move, four options for a first player Corner move, and five options for a first player Mid-Edge move.
    Still a solved game, just slightly faster.

    • @ideallyyours
      @ideallyyours 8 років тому

      +andrewxc1335 "...four options for a first player Corner move..." Are you quite sure about that?

    • @andrewxc1335
      @andrewxc1335 8 років тому

      Are there not four corners on a Tic-Tac-Toe board...? Did I miscount out of the nine squares...?

    • @ideallyyours
      @ideallyyours 8 років тому +1

      You're right in that if the first player makes a center move, the second player has to choose either one of the 4 sides or one of the 4 corners. However, if the first player chooses to occupy a corner, the second player can choose from "Center, Opposite Corner, Adjacent Corner, Adjacent Side, or Opposite side" I believe that makes 5 possible moves, factoring in diagonal symmetry.

    • @andrewxc1335
      @andrewxc1335 8 років тому +1

      ideallyyours
      Yep. 5 choices for a corner-move.
      I recant.

  • @8randomprettysecret8
    @8randomprettysecret8 Рік тому

    Noughts and crosses! Liking the terminology and strategy for optimal initial moves! Minimax. Thanks for sharing

  • @chrismckay5005
    @chrismckay5005 8 років тому

    We need an emergency Computerphile video from Rob on Microsoft's Tay

  • @xboxgamer474246
    @xboxgamer474246 8 років тому +3

    This video is brilliant. Thanks for the upload~

  • @Xonatron
    @Xonatron 3 роки тому

    6:42 As the maximizing player, the minimum best score you can get is a 5. You can guarantee a 5, no matter what the minimizing player does. If the minimizing player makes a mistake you can do even better (in your tree, and often do better but at worse do the same in any tree). That’s the power of minimax. The guarantee is the power.
    In a game like chess where it cannot are to the end of the game the horizon problem steps in. But that’s another story.

  • @ElagabalusRex
    @ElagabalusRex 8 років тому +57

    A real mathematician would never cut his hair that short.

    • @georgerickard5509
      @georgerickard5509 8 років тому +19

      +ElagabalusRex What about a computer scientist

    • @davidolsen1222
      @davidolsen1222 6 років тому +5

      A real mathematician would happily cut his computer scientist that short.

  • @Smakenzi
    @Smakenzi 6 років тому +2

    7:20 "this is a game you can play with your friends" : D

  • @joaquinel
    @joaquinel 5 років тому

    Tic-Tac-Toe
    is a 3 x 3 x 3 special version of Height, Width and row Lenght.
    I did AI in the early 80's, where recursion and brute force were prohibitive.
    I found "TicTacToe" is the very same game than "Five-in-a-row" for true AI.
    You START knowing you cannot go in deep, then you focus on the field.

    • @joaquinel
      @joaquinel 5 років тому

      Sorry, it wasn't "Real" AI, I did learning nets 20 years later, with more power.

  • @fanrco766
    @fanrco766 7 років тому

    I like the comment "if a computer was able to play chess, it would really have to be thinking right?" what's funny is that when we play chess, we use similar ideas as the computers: which moves can I make, which moves makes me capture the most pieces, which move gets me closest to the king or some other valuable peice. these are all easily calculated numbers and fitness scores. it's as if we don't have any better ways of winning chess as chess computers do.

  • @0herro
    @0herro 8 років тому +3

    Rob lookin sharp af

  • @boozydaboozer
    @boozydaboozer 8 років тому +5

    Years a go I programmed tic-tac-toe on a 32k 3.5Mhz computer (in basic). The branching principle Rob explains is nearly impossible with such restrictions. I made the A.I. hard but not unbeatable by setting up some simple rules and give sets 'weight' and added RNG. That way the better moves had a higher chance to be played, but less optimal moves were played as well. SInce the movie War Games (1983) everyone knows the game is no fun against a perfect A.I.

  • @markzambelli
    @markzambelli 8 років тому +1

    Robert Miles... GENIUS!!! Squeezing a 'Fermat' in here too!... wonderful. 'Go'-get-'em Robert.

  • @Havermeijer
    @Havermeijer 5 років тому +1

    English logician: "I like noughts and crosses, it's descriptive". The Dutch: "butter , cheese and eggs? Yes please!"

  • @tzkelley
    @tzkelley 8 років тому

    You ended just where I was hoping you would start! Genetic programming of neural networks next, please!

  • @overlord8880
    @overlord8880 8 років тому +3

    What the * +Computerphile ? I thought you would explain how they computers finally beat GO!

  • @seanrimada8571
    @seanrimada8571 6 років тому

    Man, I learned this stuff so bad at college and now I see why being smart enough to understand them is important.

  • @tetlamed
    @tetlamed 5 років тому +1

    Rob neglected to dig into another incredibly important factor in chess stemming from the branching factor besides simple mathematical tractability: the assumption of perfect play. Most humans can perfectly play naughts and crosses effortlessly, but no humans perfectly play chess or go

  • @ryleighs9575
    @ryleighs9575 7 років тому

    Really enjoying Rob Miles' insights into AI.
    Just to be pedantic though, (0:35) "X's and O's" is no less descriptive than "naughts and crosses" as a name for that game, it just depends on your culture's vernacular; they are both using words to explicitly describe the symbols used.

    • @RobertMilesAI
      @RobertMilesAI 7 років тому

      I was comparing to 'tic-tac-toe'

  • @Som1.
    @Som1. 8 років тому +3

    For tic tac toe's nodes and branches wouldnt it be 9 options, 4 options, 7, 6, 5 , 4, 3, 2?
    Since at the second move you can flip the board.

  • @ChrisSeltzer
    @ChrisSeltzer 8 років тому +1

    This was so helpful! Thank you for posting this.

  • @jmalmsten
    @jmalmsten 4 роки тому

    one thing that always aggravates me with Chess is that for over a decade. I could not find two opponents who could agree on the rule-set. They would all have confused their own house rules with whatever rule-set they proclaim was the standard one. So In the end I gave up on the game completely. Found Go. Found that there really are no house rules. And the only rule-change over the millenia it's been played... was essentially a bug fix to avoid endless loops in the gameplay.
    So it does surprise me a bit that programmers focused on Chess when in my experience, there have been no other game where I have seen so much rampant moving of goalposts that doing anything worthwhile should be essentially impossible.

  • @bigbenhebdomadarius6252
    @bigbenhebdomadarius6252 8 років тому

    "Octothorp"--I learned, in a rather abstruse book on typography, that it was originally a sign used in the Doomsday Book for eight adjoining farms. Who knew that the term was still in living use. It's much fancier than "pound sign," I must say. I don't know why the game is called "tic-tac-toe" over here, but "noughts and crosses" is much more evocative. I'm glad to see that not all British linguistic variations have been plowed--to say nothing of ploughed--under by American popular culture.

  • @Roenazarrek
    @Roenazarrek 7 років тому

    Actually for the first move there are only 3 possible branches, Center, Corner, and Side Center, because the only difference is the orientation of the board which is irrelevant. After that you actually have slightly more options as the second move is relative to the first move. Moving in the center first (which is actually suboptimal), would yield only two branches, corner, and side center, and so on.

  • @matteopallotta9721
    @matteopallotta9721 4 роки тому

    Clear and illuminating, great video!

  • @Esloquees
    @Esloquees Рік тому +1

    5:21 "The problem with recursion is the problem with recursion" Ø

  • @Krebzonide
    @Krebzonide 7 років тому

    I made a tic tac toe bot that is pretty simple where first it tests to see if you have 2 in a row and if you do it blocks it and if you don't then it just chooses a random square and it is actually better then most people who have not spent time learning tic tac toe strategies.

  • @hdaalpo
    @hdaalpo 5 місяців тому

    For those who see this in the future. A team of mostly non-Go players and a few novices BEAT THE GO AI by writing many mini AI to use every technique they could think of to try to probe the blackbox that is the go AI. They found that a "sandwich technique" was able to confuse the AI and one of the researchers was able to beat the AI 14 to 1!

    • @eragonawesome
      @eragonawesome 4 місяці тому

      Just FYI, this does not have any implications in the broader field. It is extremely well known that these systems are susceptible to that exact kind of adversarial network attack. All that implies is that This System Is Not Optimal at it's task, which is exactly what we expect for a configuration space as large as Chess or Go. Our models are not big enough to minimax the whole thing, therefore they are not perfect players, therefore they still *can* be beaten, therefore a system whose job is to try every combination of moves until it finds one that works *will* find *some* ways to beat it

  • @mcbadrobotvoice8155
    @mcbadrobotvoice8155 6 років тому +1

    I'm going to call tick tac toe noughts and crosses forever now

  • @advancedusmlestep2ckreview497
    @advancedusmlestep2ckreview497 7 років тому +1

    That Fermat reference though. :)

  • @hithere7433
    @hithere7433 8 років тому

    Knots & Crosses is played on a symmetric board. Most options are equivalent and this simplifies the evaluation.
    For instance, the number of possible starting conditions is not 9 but rather 3, since the board can be mirrored and rotated in any direction to match other options. The second choice is often 5 and otherwise 3 but not 8.

    • @mikeuk1927
      @mikeuk1927 Рік тому

      Sorry for necroreplying, but *naughts :p