Jump to content

Remote agent/Agent interface: Difference between revisions

→‎{{header|Tcl}}: Fix trivial logic bug
(→‎Tcl: Added implementation + demonstration of how to use the interface)
(→‎{{header|Tcl}}: Fix trivial logic bug)
Line 148:
}
}
}
if {rand() < 0.5} {
my TurnLeft
} else {
my TurnRight
}
} trap bumpedWall {} {}
if {rand() < 0.5} {
my TurnLeft
} else {
my TurnRight
}
}
set ::wonGame ok
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.