100 likes | 253 Views
Cat Hunt. Expanded Dog Chasing Cat Problem By Eric Olson. Problem. Expand and improve the dog-cat problem Increase the number of dogs and giving them improved A.I. in chasing the cat Give the cat A.I. to aid it evading the dogs
E N D
Cat Hunt Expanded Dog Chasing Cat Problem By Eric Olson Cat Hunt: Expanded Dog Chasing Cat Problem
Problem • Expand and improve the dog-cat problem • Increase the number of dogs and giving them improved A.I. in chasing the cat • Give the cat A.I. to aid it evading the dogs • Create clearer and easier to use graphical representation of chase • Remove animal trails • Static axes Cat Hunt: Expanded Dog Chasing Cat Problem
Motivation • It was relatively boring to watch the cat run straight and have the dog circling it. • Cats are smart, let it try to escape. • Dogs are smarter than the original simulation. • Dogs really don’t like cats, get more dogs! Cat Hunt: Expanded Dog Chasing Cat Problem
Solution: Setup • Cat Properties • Only one cat • Twice as fast as dogs • Initial location is always in center of area (0,0) • Dog Properties • Can be unlimited dogs • Initial location(s) randomly generated or loaded from file • Simulation Ends When: • A dog is within .5 units of cat • Cat escapes off of area 600x600 square • Cat eludes dogs for 500 iterations Cat Hunt: Expanded Dog Chasing Cat Problem
Solution: Cat A.I. • Cat bases route off of closest dog • Determine closest dog • Run away from closest dog at angle it is pursuing • Define route after every iteration of system Cat Hunt: Expanded Dog Chasing Cat Problem
Solution: Dog A.I. • Dogs base route off of current and possible future locations of the cat • Steps to determine route of each dog • Determine distance from cat • If cat is more than 5 steps (iterations away), run towards where the cat should be then if no course change is made. • Otherwise, run directly at where the cat should be the next iteration. Cat Hunt: Expanded Dog Chasing Cat Problem
Graphical Modes Routes with Trails Routes without Trails Cat Hunt: Expanded Dog Chasing Cat Problem
Test Results: Max-Min vs. Kosko’s Max-Product Rule Max-Min Rule Kosko’s Max-Product Rule Cat Hunt: Expanded Dog Chasing Cat Problem
Test Results: Max-Min vs. Kosko’s Max-Product Rule Cat Hunt: Expanded Dog Chasing Cat Problem
Conclusion • Expansion makes for a very interesting simulation • Random dog locations increases intrigue as each new test is different • Extremely fun project to complete • Interesting application of Fuzzy Control Logic Cat Hunt: Expanded Dog Chasing Cat Problem