006fix / Game_Coding_Challenge

0 stars 0 forks source link

genetic algorithm shouldn't use i #20

Open 006fix opened 2 years ago

006fix commented 2 years ago

currently genetic algorithm uses i, aka the turn number

but this only really works if the turn number is constant, and it's affected by the number of players. So this works for single training instances, but isn't generalisable. Possible just remove it?

Alternative - generate an "actions made" flag for a player, that iterates up by one when the player builds something, then feed this into the algorithm