olistic / warriorjs

🏰 An exciting game of programming and Artificial Intelligence
https://warriorjs.com
MIT License
9.41k stars 488 forks source link

Add ability to get warrior's max health #237

Closed olistic closed 5 years ago

olistic commented 5 years ago

The proposal is to add a .maxHealth() ability (sense), that allows the player to get the warrior's max health programmatically, so hardcoding its value in the code is no longer necessary.

jseed commented 5 years ago

I can take a crack at this over the weekend if you'd like the help!

olistic commented 5 years ago

@JSeed Of course! Let me know if you have any questions while at it.

enrique-ramirez commented 5 years ago

I didn't know this was open source! Thanks for the quick response. I'll try to help out soon as well!