Python Simulation Tutorial - Conway's Game of Life

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

КОМЕНТАРІ • 47

  • @bp-ob8ic
    @bp-ob8ic 11 місяців тому +3

    Conway's Game of Life has always fascinated me.
    Gonna work through this in the morning. Thanks for this tutorial.
    I was able to follow the logic, and it mostly matched the pseudo code I had blocked out. Now I just have to learn more pygame.

  • @esrx7a
    @esrx7a 11 місяців тому +5

    What a concept!
    I had been breaking my head to understand the concept & this happens finally. Thank you Tim

  • @bakerboyplayz5254
    @bakerboyplayz5254 16 днів тому

    thank you so much tim, this will help me a lot to develop my school project :)

  • @StreakyFly
    @StreakyFly 11 місяців тому +1

    I was waiting for you to make Conway's game of life and finally, here it is. Great video! :D

  • @void_presence
    @void_presence 8 місяців тому +1

    fantastic, just the thing i was looking for: python implementation of Conway's Life with clickable nodes

  • @17crescent
    @17crescent 11 місяців тому +1

    Great video. Slight correction as 39+1 can never be > 40 in your example grid. Plus added a wrap-around:
    def get_neighbors(pos):
    x, y = pos
    neighbors = []
    for dx in [-1, 0, 1]:
    if x + dx < 0:
    x += GRID_WIDTH
    elif x + dx == GRID_WIDTH:
    x -= GRID_WIDTH
    for dy in [-1, 0, 1]:
    if y + dy < 0:
    y += GRID_HEIGHT
    elif y + dy == GRID_HEIGHT:
    y -= GRID_HEIGHT
    if dx == 0 and dy == 0:
    continue
    neighbors.append((x + dx, y + dy))
    return neighbors

  • @NicolasFleury-ww5ut
    @NicolasFleury-ww5ut 4 місяці тому

    It is working perfectly well! Thank you Tim.
    However, please note that on line 21 of the code, you should invert GRID_WIDTH and GRID_HEIGHT for correct random position generation, especially for different screen width and height.

  • @westudy9180
    @westudy9180 11 місяців тому +1

    i really like these kind of video please make more of these video i am looking forward for that thank you once again....👏🏻🙌🏻👏🏻

  • @programm_mister9692
    @programm_mister9692 8 місяців тому +1

    Thanks bro, otherwise I ran into a bunch of bugs when developing the game "life" on my game engine.

  • @timeWaster76
    @timeWaster76 6 місяців тому

    best coder vid's on youtube

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

    thank you for the tutorial works perfectly fine !

  • @BsktImp
    @BsktImp 11 місяців тому

    Didn't realise set() data structure and methods were so useful.

  • @vizionthing
    @vizionthing 11 місяців тому

    Outstanding Tim, loved this one.

  • @jerryedept2022
    @jerryedept2022 7 місяців тому +1

    Does anyone please have a version of this code with ezgraphics?

  • @beforeikillyou7430
    @beforeikillyou7430 11 місяців тому

    I did this in processing....was fun

  • @ashirwadsingh6926
    @ashirwadsingh6926 11 місяців тому

    amazing video keep up the good work

  • @plinketharry7469
    @plinketharry7469 11 місяців тому

    this was great, cheers

  • @paulthomas1052
    @paulthomas1052 11 місяців тому

    Very interesting - great code as usual. Thanks !

  • @richardsifeanyi6766
    @richardsifeanyi6766 11 місяців тому

    Thanks Tim

  • @gamerfisch5117
    @gamerfisch5117 11 місяців тому

    great video 👍

  • @foqsi_
    @foqsi_ 11 місяців тому +8

    I had to recreate this in Java for school. Sucked. lol

  • @pathapativarshitha1780
    @pathapativarshitha1780 11 місяців тому

    Hii, really useful video... like always :)

  • @MrMysterious31
    @MrMysterious31 11 місяців тому

    Hi tim, I want to simulate how an object of certain pounds would react on the different planets with different gravity.. kindly make a video if possible.. regards:)

  • @elenasavchenkova2601
    @elenasavchenkova2601 Місяць тому

    Hi. What PyCharm theme are you using here?

  • @Car2hell975
    @Car2hell975 8 місяців тому

    How Can i make simulation like Project jdm and math Floyd can you make a video or tell me where to start

  • @Digital_Anime_Creator0709
    @Digital_Anime_Creator0709 11 місяців тому

    heloo sir can u create a digitmatch that can predict the last number randomly for example entry spot 12345 the last is 5 then the last exit result lexit spot
    is 5 also can u make it this sir?

  • @miichanshi
    @miichanshi 11 місяців тому

    can you make a tutorial on reflex or pynecone

  • @fruitStall
    @fruitStall 9 місяців тому

    Hey. I followed the tutorial and everything works until I try to run the simulation. I get the error "not enough values to unpack (expected 2, got 1)" at line 58 (x, y = pos in the get_neighbors function)
    Any idea why this happens and how to fix it?

  • @meim6028
    @meim6028 11 місяців тому

    Hey Tim, can help help the community to create a product web app

  • @Pramix
    @Pramix 11 місяців тому

    Insaine!! how do you learn programming like this?? 🤯

    • @Suto_Ko
      @Suto_Ko 11 місяців тому +2

      he practice, practice, practice. Programming is a skill that improves with hands-on experience. Start with the basics, like learning a programming language, understanding concepts, and solving small coding problems. Build projects, join coding communities, and never stop learning. It takes time and effort, but it's worth it.

  • @cosmicman00
    @cosmicman00 Місяць тому

    do boid simulation

  • @jeffreyepiscopo
    @jeffreyepiscopo 11 місяців тому

    Why pygame instead of pygame-ce?

    • @Suto_Ko
      @Suto_Ko 11 місяців тому

      pygame-ce is a community-driven fork of pygame that aims to continue development and address some of the issues in the original pygame. While pygame-ce offers some improvements, the choice between pygame and pygame-ce ultimately depends on your specific needs and preferences. Both libraries can be used to create games and multimedia applications in Python.

    • @jeffreyepiscopo
      @jeffreyepiscopo 11 місяців тому +2

      @@Suto_Ko is this chat gpt

  • @nakulgaming2537
    @nakulgaming2537 11 місяців тому +1

    Hello

    • @TechWithTim
      @TechWithTim  11 місяців тому +2

      Hey!

    • @nakulgaming2537
      @nakulgaming2537 11 місяців тому +1

      I was tried your all projects of python nd it really helped me very much❤️

  • @mehtabsinghgiran6531
    @mehtabsinghgiran6531 11 місяців тому

    first comment i think
    😆😅

  • @no99mnecfw
    @no99mnecfw 11 місяців тому

    Please stop saying actually so much.