Evolving AI Learns to Play Tetris 🧱🤖

Ойын-сауық

An AI learning to playing the iconic game "Tetris", using an evolutionary algorithm.
00:00:00 Generation 1-4
00:00:05 Generation 5-9
00:00:11 Generation 10-14
00:00:20 Generation 15-19
00:00:29 Generation 20-24
00:00:37 Generation 25-29
00:00:47 Generation 30-34
00:00:56 Generation 35-39
00:01:09 Generation 40-44
00:01:27 Generation 45-49
00:01:55 Generation 50
Music: "Nine Lives" - Unicorn Heads

Пікірлер: 6

  • @fmaion
    @fmaion Жыл бұрын

    What parameters are you providing the IA? Will you turn the code available?

  • @AlanZucconi

    @AlanZucconi

    Жыл бұрын

    Hi! The AI chooses which move to perform based on a series of heuristics. They are calculated based on the full state of the Tetris boar. The evolution algorithm is optimising the weights used to combine those heuristics together. Unfortunately no, the code will not be available!

  • @fmaion

    @fmaion

    Жыл бұрын

    @@AlanZucconi Cool. What if you try to use the state only for the empty spots in the board? The moves includes rotation? And does it knows the next piece to come?

  • @AlanZucconi

    @AlanZucconi

    Жыл бұрын

    @@fmaion yes, the AI takes into account rotations. It does not consider certain moves (like the T spin) as valid, but they are not possible in my version of the game anyway. The AI you see here is not considering the next move. This is because otherwise it gets better too quickly and the video would have been fairly boring! But my best AI consistently lasts for several millions moves.

  • @alexrobbins2288
    @alexrobbins22882 жыл бұрын

    Very cool! What did you use to program this?

  • @AlanZucconi

    @AlanZucconi

    2 жыл бұрын

    Thanks! This was make in Unity!

Келесі