stevegrossi / sengoku

An online Risk-like game built with Elixir and Phoenix LiveView
https://www.playsengoku.com/
60 stars 3 forks source link

Prevent any player from randomly starting the game with a full region #59

Open stevegrossi opened 4 years ago

stevegrossi commented 4 years ago

At the start of the game tiles are granted randomly, so there's a small chance that one player would be granted ownership of every tile in a region, and would start the game with the region's bonus, giving them an unreasonable advantage.

There might be several ways to prevent this. Since (for now) all tiles belong to a region, we might loop through each region as we assign tiles, ensuring each region is as evenly divided among players as possible.

yakryder commented 4 years ago

I will start with a quick look at this today

yakryder commented 4 years ago

Looked at this yesterday. Nearly have a failing test, will commit and push when available