From: Paul C. <pca...@us...> - 2004-11-21 01:21:17
|
Update of /cvsroot/gvr/GvR-Testing/lessons In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10645 Modified Files: eratosthenesSieve.py Log Message: fixed so it now works with the packaged version of powermode, HvR Index: eratosthenesSieve.py =================================================================== RCS file: /cvsroot/gvr/GvR-Testing/lessons/eratosthenesSieve.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** eratosthenesSieve.py 15 Nov 2004 14:17:24 -0000 1.1 --- eratosthenesSieve.py 21 Nov 2004 01:20:33 -0000 1.2 *************** *** 7,11 **** # Numbers are laid out in a 10x10 grid, and each # number is represented by a pile of beepers. ! from powerMode import * def main(): --- 7,11 ---- # Numbers are laid out in a 10x10 grid, and each # number is represented by a pile of beepers. ! from HvR.HvR import * def main(): *************** *** 30,34 **** while num <= 100: if num > factor and num % factor == 0: ! world.beepers[world.robot] = 0 pause(0.4) move() --- 30,35 ---- while num <= 100: if num > factor and num % factor == 0: ! #world.beepers[world.robot] = 0 ! pickbeeper() pause(0.4) move() |