Skip to content

Place n lizards on mxm matrix in such a way that they can't attack each other. Trees on the input matrix block the lizards from attacking.

Notifications You must be signed in to change notification settings

KrishnaJay/Lizards-and-trees_AI-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Lizards-and-trees_AI-1

Place n lizards on mxm matrix in such a way that they can't attack each other. Trees on the input matrix block the lizards from attacking. This is an assignment involving search algorithms to find a feasiable solution.

Project description

You are a zookeeper in the reptile house. One of your rare South Pacific Tufted Wizzo lizards (Tufticus Wizzocus) has just had several babies. Your job is to find a place to put each baby lizard in a nursery. However, there is a catch, the baby lizards have very long tongues. A baby lizard can shoot out its tongue and eat any other baby lizard before you have time to save it. As such, you want to make sure that no baby lizard can eat another baby lizard in the nursery (burp). For each baby lizard, you can place them in one spot on a grid. From there, they can shoot out their tongue up, down, left, right and diagonally as well. Their tongues are very long and can reach to the edge of the nursery from any location.

About

Place n lizards on mxm matrix in such a way that they can't attack each other. Trees on the input matrix block the lizards from attacking.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages