Neuron 101

Solving by search / Agent

Türkçe

Plate12

Unit 2 · Topic 1 of 10

Agent

Easy, 6 min, 10 steps

S
Keyboard: left and right arrows change the step, space plays and pauses.

Step 1 of 10 Environment

Environment and agent

The environment is the maze and the agent is the red triangle. The agent does not know the map or where the flag is. The tip of the triangle shows the direction it faces.

Tap a part of the scene to see its details here.

Open in Colab
  1. def ajan(algi):
  2. sag_acik, on_acik = algi
  3. if sag_acik:
  4. return "saga don, ilerle"
  5. if on_acik:
  6. return "ilerle"
  7. return "sola don"
  8. ortam.baslat()
  9. while not ortam.hedefte():
  10. algi = ortam.algila()
  11. eylem = ajan(algi)
  12. ortam.uygula(eylem)
tik
0
hamle
0
donus
0