ID: a simple flowchart titled “Should I Punch This Nazi?”. At the top is the question “Is the Nazi within punching distance?” two arrows lead to “Yes” and “No”. “Yes” has an arrow leading to “Punch the Nazi”. “No” has an arrow to “Move closer” and from that back up to “Is the Nazi within punching distance?”

    • db0M
      link
      fedilink
      123 days ago

      Well done in converting this into a state engine. We can quickly plug it into our game ai

    • @[email protected]OP
      link
      fedilink
      English
      42 days ago

      Flowchart says “punch the Nazi”, nowhere does it say “once” or “stop” ¯\_(ツ)_/¯

    • @fuck_u_spez_in_particular
      link
      1
      edit-2
      2 days ago

      You can optimize the cycle away, it should be equivalent to be reduced to just punch the nazi continuously (assuming the nazi is static anyways haha)

  • @nzeayn
    link
    42 days ago

    false. begin with ranged attacks to avoid having your day ruined by hearing the nazi making word vomit. punching is a proximity based secondary attack.