Open Joi179 opened 5 years ago
If watching history isnt possible.. -we have to be able to somehow "communicate" with the AI telling it Cycle aswell as Income.
we have to also note that if this is the way we do it so other people that may want to play with the AI themself know about this problem
OR
-we would have to create an equation. it would have to safe the state from the previous turn (my / opponent / neutral territorie aswell as Unit count) compare it with the current turn and calculate how it went from the previous turn to the current turn. For example: Previous turn: X is my Territorie. it has 1 guy. AI deploy 4 = 5. it border 1 enemy territorie Y. it has 1 guy. Current turn: NewX Is opponent Territorie. it has 6 units then it Brute forces. (X+?-1) x0.6 >= X when thats the case (X+?-1) - (X x0.7) =NewX
it has to always round up or down so in this example it would run through (1+1-1)x0.6 =/= 5 (1+2-1)x0.6 =/= 5 (1+3-1)x0,6 =/= 5 ... (1+9-1)x0.6 = 5 THEN (1+9-1)-(5x0.7) =/= 6 (1+10-1)x0.6 >= 5 THEN (1+10-1)-(5x0.7) = 6 so we know it deployed 10 units
but honestly this way is probably way to big when it has do safe the entire previous board and then look up at all the differences and why they happened.
It should try to figure out the Cycle of the game and Memorize it for potential use later. It should memorize the deployments of the opponent for each turn