Hello comrades and welcome to the second improvement megathread of July! bonfire


Some discussion ideas:

- How was your week?

+ Do you have some plans for next week?

Poster caption

Study hard and every day you will improve

好好学习天天向上

Haohao xuexi, tiantian xiangshang

comrade-doggo

  • lurker_supreme [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    3
    ·
    24 days ago

    I don’t know where else to post this, hopefully it’s ok. Working on corporate software for so long dulls the mind. I decided to implement the A* pathfinding algorithm as an exercise.

    video recording of the implementation

    Context for non-computer touchers: the red squares are trying to find their way to me(the blue square) on a 64x64 grid. The green squares are the path that they are calculating. When I click my mouse I create purple squares which serve as barriers that alter the shortest path from the red squares to me.

    • moonlake [he/him]@hexbear.net
      cake
      OP
      link
      fedilink
      English
      arrow-up
      2
      ·
      22 days ago

      You can definitely post this here! I’m not a programmer but I know pathfinding from video games. Are you working on a videogame?

      • lurker_supreme [he/him]@hexbear.net
        link
        fedilink
        English
        arrow-up
        2
        ·
        22 days ago

        I didn’t intend to but I might. I have been tinkering with this more since I posted it. There’s just something about the cycle of breaking and fixing your work that makes me remember why I love programming.