logo

Crowdly

Suponiendo el siguiente código para actualizar la posición actual de Willy, dond...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Suponiendo el siguiente código para actualizar la posición actual de Willy, donde su posicición actual se guarda en un hecho ordenado de estructura (posicion <fila> <columna>), ¿cómo tendrían que modificarse las variables ?fila y ?col en el consecuente si Willy se ha movido al norte?

(defrule moverWilly

(directions $? north $?)

?dh <- (hice ?)

?dp <- (posicion ?fila ?col)

(percepts)

=>

(moveWilly north)

(retract ?dh ?dp)

(assert ...COMPLETAR...)

)
100%
0%
0%
0%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.uco.es?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!