The Farmer Was Replaced - "A Drone Farming Simulator"

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

КОМЕНТАРІ • 15

  • @mkDaniel
    @mkDaniel 12 днів тому +1

    1:27 the eternal struggle of a programmer...

    • @TheCasualSweats
      @TheCasualSweats  12 днів тому +1

      Right!? It'll probably change 100 times and end up back at "test" before we're done 🤣

    • @romanobreuer9230
      @romanobreuer9230 12 днів тому

      Great video, you got you a subscriber

    • @TheCasualSweats
      @TheCasualSweats  12 днів тому

      Thanks so much @romanobreuer9230! Got more vids in the pipeline, plan on revisiting this one eventually! 😁

  • @youraccountissuspended
    @youraccountissuspended 11 днів тому

    for x in range(get_world_size()):
    if x % 2 == 0:
    y_range = range(get_world_size())
    else: y_range = range(get_world_size() - 1, -1, -1)
    for y in y_range:
    if can harvest(): harvest()
    plant(Entities.)
    moveTo(x,y)

    • @TheCasualSweats
      @TheCasualSweats  10 днів тому

      This is beautiful and made me tear up a little, I am definitely making another video and putting this in!

  • @EmM-ko7mu
    @EmM-ko7mu 12 днів тому

    i give up on the maze theres no way i can do that without random movements. the hints in game dont help

    • @TheCasualSweats
      @TheCasualSweats  12 днів тому

      I've seen some snapshots on the maze, haven't got there yet so keep your fingers crossed for me!

    • @mkDaniel
      @mkDaniel 12 днів тому

      @@EmM-ko7mu random movement Will work as long as there is a way therebut will be slow. You can weight the direction which gets you close since you can sense terasure position. Other way Is wall folowing. That will work as long as there Is no loop but is significantly faster.

    • @EmM-ko7mu
      @EmM-ko7mu 11 днів тому

      @@mkDaniel not smart enough to know how to follow the walls. thats the issue i dont see the pattern to follow even forgetting about code.

    • @mkDaniel
      @mkDaniel 11 днів тому

      @@EmM-ko7muall moves Are relative to your current foward
      1. remember a direction (does not master which one) as foward
      2. Try moving to direction perpendicular to that you are moving in (e.g. right)
      3. On suceed this Is your new move direction
      4. On faliure go foward
      5. Repeat from step 2. untill above terasure

    • @EmM-ko7mu
      @EmM-ko7mu 11 днів тому

      @@mkDaniel and if 3 and 4 both fail as you are at a dead end you then cant move with those rules as forward left and right are all blocked. if you then pick back as the new direction youll hit a wall and try to go right which puts you right back into the dead again again. do you just randomly pick a perpendicular direction and not preference one as if you do you end up in a clockwise loop. i dont see it i legitimately gave this multiple hours of thought before giving up