/home/cis130/simmsric $ more lab1/lab1.* :::::::::::::: lab1/lab1.1 :::::::::::::: # # CIS (Spring 2007) # # Rich Simms # # Lab1.1 (go around wall and get ring) # move turnright move turnright turnright turnright move turnright turnright turnright move pickring stop :::::::::::::: lab1/lab1.2 :::::::::::::: # # CIS 130 (Spring Term) # # Rich Simms # # lab1.2 (get newspaper and return to original state) # turnright move move turnright turnright turnright move move turnright turnright turnright move move turnright turnright turnright move pickring turnright turnright move turnright move move turnright move move turnright move move putring turnright stop :::::::::::::: lab1/lab1.3 :::::::::::::: # # CIS 130 # # Rich Simms # # Lab1.3 (Frodo climbs mountain leaving ring at top) # move2 () { move move } turnleft () { turnright turnright turnright } move turnleft move2 turnright move turnleft move2 turnright move putring move turnright move2 turnleft move turnright move2 turnleft move stop :::::::::::::: lab1/lab1.4 :::::::::::::: # # CIS 130 (Spring 2007) # # Rich Simms # # lab1.4 (functions) # turnaround () { turnright turnright } backup () { turnaround move turnaround } move-mile () { move move move move move move move move move move } move-mile turnaround move-mile backup backup backup backup backup turnright move-mile turnaround move-mile stop :::::::::::::: lab1/lab1.5 :::::::::::::: # # CIS 130 (Spring Term) # # Rich Simms # # lab1.5 (bowling pin setting) # move3 () { move move move } move2 () { move move } turnleft () { turnright turnright turnright } corner-left () { turnleft move turnleft move } corner-right () { turnright move turnright move } corner-left () { turnleft move turnleft move } corner-left () { turnleft move turnleft move } corner-left () { turnleft move turnleft move } corner-left () { turnleft move turnleft move } corner-left () { move turnleft move turnleft } corner-right () { move turnright move turnright } place2 () { putring move2 putring } place3 () { place2 move2 putring } place4 () { place2 move2 place2 } move putring turnleft corner-right place2 corner-left place3 corner-right place4 turnleft move turnleft move3 turnleft stop /home/cis130/simmsric $