ChaelCodes / CorneliusCodes

Cornelius, the Corn Snake who codes, is a Rusty Battlesnake Baby.
MIT License
2 stars 5 forks source link

Don't Headbutt Sneks who can Headbutt back #13

Closed ChaelCodes closed 3 years ago

ChaelCodes commented 3 years ago

Description

closes #2 Cornelius wasn't aware of the future potential locations of other sneks. So 4/7 deaths were from headbutting larger or same sized snakes.

4 Cornelius's die of headbutts

Changes

Cornelius tracks the potential locations of other large/same-sized snakes, and avoids them.

5 out of 8 Cornelii starved

After these changes, only 1 Cornelius died from running into another snek, and 5 died of starvation! Great avoidance!