W01fw00d / barbarians

A little web-browser turn-based strategy game
GNU General Public License v3.0
5 stars 4 forks source link

Create a disableLuck url param flag #105

Open W01fw00d opened 3 years ago

W01fw00d commented 3 years ago

Refactor a Random module and set a flag to “disableLuck”, meaning that the output of Random will be strictly predictable.

Random will include:

This flag will allow to strictly test combat an AI turn (at least meanwhile AI turn decisions are completely random instead of based on algorithms).

Also, it will be useful for manual debugging.