logo

Crowdly

Browser

Add to Chrome

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

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

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...)

)
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.uco.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome