Get the latest tech news
Corral.BAS
Cowboy themed game from David Ahl's 1978 book "More BASIC Computer Games" converted and refactored into a browser-playable version.
It'll bolt if you cover more than half the distance at once, and may kick if you get within 2 steps. Our primary loop begins with drawing our playfield, reading each element of the A array looking for a match to our Horse or Cowboy positions. More of our loop, checking for kicks and bolting if we get too close too fast.
Or read this on Hacker News