AI, old projectile fade

This commit is contained in:
zenoamaro committed 2019-06-27 03:05:55 +02:00
1 parent 04a17063cb
commit 4c13945311
2 files changed
+44 -10

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import {PLAYER_MAX_ENERGY, PLAYER_INITIAL_POWER, PLAYER_ENERGY_POWER_MULTIPLIER} from './constants.js';
import {randomInt} from './math.js';
export const AI_TYPES = {
moron: {
decide() {
return {
a: randomInt(0, 180),
p: randomInt(PLAYER_INITIAL_POWER, PLAYER_MAX_ENERGY*PLAYER_ENERGY_POWER_MULTIPLIER)}
}
},
};