\code{
\func{Skeleton-Agent}{{\ts}\var{percept}}{action}
    \firststatic{memory}{the agent's memory of the world}
\bodysep
    \setq{\var{memory}}{\prog{Update-Memory}(\var{memory{\ac}percept})}
    \setq{\var{action}}{\prog{Choose-Best-Action}(\var{memory})}
    \setq{\var{memory}}{\prog{Update-Memory}(\var{memory{\ac}action})}
    \key{return} \var{action}
}
