--- Running the random agent -- t=1 at (3,2,left), percept=( dirt ), action ='forward', score=-1 t=2 at (2,2,left), percept=(), action ='forward', score=-2 t=3 at (1,2,left), percept=(), action ='forward', score=-3 t=4 at (0,2,left), percept=(), action ='turnLeft', score=-3 t=5 at (0,2,down), percept=(), action ='turnLeft', score=-3 t=6 at (0,2,right), percept=(), action ='turnLeft', score=-3 t=7 at (0,2,up), percept=(), action ='suck', score=-3 t=8 at (0,2,up), percept=(), action ='turnRight', score=-3 t=9 at (0,2,right), percept=(), action ='suck', score=-3 t=10 at (0,2,right), percept=(), action ='forward', score=-4 t=11 at (1,2,right), percept=(), action ='suck', score=-4 t=12 at (1,2,right), percept=(), action ='turnLeft', score=-4 t=13 at (1,2,up), percept=(), action ='forward', score=-5 t=14 at (1,3,up), percept=(), action ='forward', score=-6 t=15 at (1,4,up), percept=( dirt ), action ='turnRight', score=-6 t=16 at (1,4,right), percept=( dirt ), action ='turnRight', score=-6 t=17 at (1,4,down), percept=( dirt ), action ='turnLeft', score=-6 t=18 at (1,4,right), percept=( dirt ), action ='forward', score=-7 t=19 at (2,4,right), percept=( dirt ), action ='forward', score=-8 t=20 at (3,4,right), percept=( dirt ), action ='forward', score=-9 t=21 at (4,4,right), percept=( dirt ), action ='turnLeft', score=-9 t=22 at (4,4,up), percept=( dirt ), action ='forward', score=-10 t=23 at (4,5,up), percept=( dirt ), action ='suck', score=90 t=24 at (4,5,up), percept=(), action ='forward', score=89 t=25 at (4,6,up), percept=(), action ='turnRight', score=89 t=26 at (4,6,right), percept=(), action ='turnLeft', score=89 t=27 at (4,6,up), percept=(), action ='forward', score=88 t=28 at (4,7,up), percept=( dirt ), action ='suck', score=188 t=29 at (4,7,up), percept=(), action ='turnLeft', score=188 t=30 at (4,7,left), percept=(), action ='forward', score=187 t=31 at (3,7,left), percept=( dirt ), action ='forward', score=186 t=32 at (2,7,left), percept=( dirt ), action ='turnLeft', score=186 t=33 at (2,7,down), percept=( dirt ), action ='suck', score=286 t=34 at (2,7,down), percept=(), action ='forward', score=285 t=35 at (1,7,down), percept=(), action ='suck', score=285 t=36 at (1,7,down), percept=(), action ='turnLeft', score=285 t=37 at (1,7,right), percept=(), action ='forward', score=284 t=38 at (2,7,right), percept=(), action ='forward', score=283 t=39 at (3,7,right), percept=( dirt ), action ='turnRight', score=283 t=40 at (3,7,down), percept=( dirt ), action ='suck', score=383 Finished 40 steps. Total score = 383, average = 9.575 Score = '383' --- Finished random agent -- --- Running the reflex agent -- t=1 at (4,5,right), percept=( dirt ), action ='suck', score=100 t=2 at (4,5,right), percept=(), action ='forward', score=99 t=3 at (5,5,right), percept=( dirt ), action ='suck', score=199 t=4 at (5,5,right), percept=(), action ='forward', score=198 t=5 at (6,5,right), percept=( dirt ), action ='suck', score=298 t=6 at (6,5,right), percept=(), action ='turnRight', score=298 t=7 at (6,5,down), percept=(), action ='forward', score=297 t=8 at (5,5,down), percept=(), action ='forward', score=296 t=9 at (4,5,down), percept=(), action ='forward', score=295 t=10 at (3,5,down), percept=(), action ='forward', score=294 t=11 at (2,5,down), percept=( dirt ), action ='suck', score=394 t=12 at (2,5,down), percept=(), action ='turnLeft', score=394 t=13 at (2,5,right), percept=(), action ='forward', score=393 t=14 at (3,5,right), percept=(), action ='forward', score=392 t=15 at (4,5,right), percept=(), action ='turnRight', score=392 t=16 at (4,5,down), percept=(), action ='forward', score=391 t=17 at (3,5,down), percept=(), action ='forward', score=390 t=18 at (2,5,down), percept=(), action ='forward', score=389 t=19 at (1,5,down), percept=( dirt ), action ='suck', score=489 t=20 at (1,5,down), percept=(), action ='turnRight', score=489 t=21 at (1,5,left), percept=(), action ='turnLeft', score=489 t=22 at (1,5,down), percept=(), action ='turnLeft', score=489 t=23 at (1,5,right), percept=(), action ='forward', score=488 t=24 at (2,5,right), percept=(), action ='turnLeft', score=488 t=25 at (2,5,up), percept=(), action ='turnLeft', score=488 t=26 at (2,5,left), percept=(), action ='turnRight', score=488 t=27 at (2,5,up), percept=(), action ='forward', score=487 t=28 at (2,6,up), percept=(), action ='forward', score=486 t=29 at (2,7,up), percept=( dirt ), action ='suck', score=586 t=30 at (2,7,up), percept=(), action ='forward', score=585 t=31 at (2,7,up), percept=( bump ), action ='turnLeft', score=585 t=32 at (2,7,left), percept=(), action ='turnRight', score=585 t=33 at (2,7,up), percept=(), action ='forward', score=584 t=34 at (2,7,up), percept=( bump ), action ='turnLeft', score=584 t=35 at (2,7,left), percept=(), action ='turnLeft', score=584 t=36 at (2,7,down), percept=(), action ='forward', score=583 t=37 at (1,7,down), percept=(), action ='forward', score=582 t=38 at (0,7,down), percept=( dirt ), action ='suck', score=682 t=39 at (0,7,down), percept=(), action ='forward', score=681 t=40 at (0,7,down), percept=( bump ), action ='turnRight', score=681 Finished 40 steps. Total score = 681, average = 17.025 Score = '681' --- Finished reflex agent -- == 20 runs == random gives 278; reflex gives 881 . random gives 282; reflex gives 581 . random gives 177; reflex gives 1081 . random gives 187; reflex gives 887 . random gives 81; reflex gives 488 . random gives 182; reflex gives 386 . random gives 484; reflex gives 581 . random gives 279; reflex gives 779 . random gives 487; reflex gives 685 . random gives 188; reflex gives 381 . random gives 281; reflex gives 788 . random gives 484; reflex gives 680 . random gives 279; reflex gives 480 . random gives 486; reflex gives 678 . random gives 286; reflex gives 785 . random gives 79; reflex gives 582 . random gives 384; reflex gives 284 . random gives 378; reflex gives 586 . random gives 290; reflex gives 785 . random gives 284; reflex gives 682 . Average random agent score was 292.8 Average reflex agent score was 653