maeghtesadi / small-World

1 stars 0 forks source link

Part 3: Player Strategy Pattern #17

Open maeghtesadi opened 6 years ago

maeghtesadi commented 6 years ago

Using the Strategy design pattern, implement different kinds of players that make different decisions during the turn for (a) picks a race and special power combo; (b) Conquers some regions; and (c) Scores some victory coins. The kinds of players are: (1) An aggressive player who expand his/her empire and then hold onto everything he/she got until the end of the game, that is expand to as many regions as quickly as he/she can, the player don’t fear enemy races counter attacking and destroying his/her gains. (2) A defensive player constantly looking to dismantle the opponent(s) empire, that is wants a slow, welldefended advance. (3) A moderate player who know when to place the race in decline, which likely ends its hold on the board, but paves the way for his/her control of another race to renew his/her conquests. (e.g. unless the player first-pick the Ghouls, whose race ability allows him/her to control them as if they were active even though they’re in decline and should go in decline on the second turn, he/she’ll want to spend two or three turns with him/her first race. (4) A random player whose strategy reinforces random region conquers and random placing of race in decline

maeghtesadi commented 6 years ago

done!!! just needs to be fully tested and maybe modify some the strategy to make it more either defensive, moderate

maeghtesadi commented 6 years ago

test moderate player, will it decline based on max tokens