necronet / rabbit-exercise

Just an exercise done in an interview process about a silly rabbit that need to eat as many carrots as it can.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interview exercise about a rabbit game

The rabbit is going to be place at the center of the matrix, if the matrix has no definitive center then it will pick the place near the center that has the most carrots.

Each number in the array represent the carrots in the place, the rabbit can only move up, down, left, right. The rabbit will pick the place with the most amount of carrots once the rabbit hits a point where there is no carrot in its neighbor coordinates it will go to sleep and the game is over.

About

Just an exercise done in an interview process about a silly rabbit that need to eat as many carrots as it can.


Languages

Language:JavaScript 100.0%