Those pesky rats have returned and this time they have taken over the Town Square.
The Pied Piper has been enlisted again to play his magical tune and coax all the rats towards him.
But some of the rats are deaf and are going the wrong way!
How many deaf rats are there?
- The Town Square is a rectangle of square paving stones (the Square has 1-15 pavers per side)
- The Pied Piper is always present
- Deaf rats are those that are moving to paving stone further away from the Piper than where they are now
- Use Euclidian distance for your calculations
P
= The Pied Piperβ
β
β
β
β
β
β
β
= Rats going in different directions- space = Everything else
ex1 - has 1 deaf rat
β P
β β
β
β
ex2 - has 7 deaf rats
β P β β β β β β β β β β β