Okay, allowing players to conquer in the simulation turned out to be more difficult than I expected.
Here's a concrete to-do list.
[ ] Always save tiles at the edge of territory as possibleTiles
[ ] But, only when we're at war, are we allowed to take over tiles that are from other players.
[ ] Also, we're NOT allowed to go to a tile, if a ship is already there.
[ ] When we 'conquer', we still only explore one tile at a time, and add neighbours to possibleTiles.
[ ] However, we still use a (large) range for detecting enemy ships (and docks/cities), and attacking them.
[ ] Remove the whole "target" system => SIMPLIFY!
[ ] Whenever an enemy takes one of our tiles, we add the tiles to a list called "warTiles"
[ ] With a certain probability, ships will jump to one of these warTiles, and start attacking the enemy. (This is realistic: they heard someone entered their territory, and are now coming to stop him.)
[ ] Otherwise, ships will stay where they are, and conquer (explore/attack) there
[ ] When the war is over, the losing side should have a much smaller territory than the winning side. But, I can't be sure of that. I need to find a way to transfer a large part of someone's territory to other players.
Okay, allowing players to conquer in the simulation turned out to be more difficult than I expected.
Here's a concrete to-do list.
[ ] Always save tiles at the edge of territory as possibleTiles
[ ] But, only when we're at war, are we allowed to take over tiles that are from other players.
[ ] Also, we're NOT allowed to go to a tile, if a ship is already there.
[ ] When we 'conquer', we still only explore one tile at a time, and add neighbours to possibleTiles.
[ ] However, we still use a (large) range for detecting enemy ships (and docks/cities), and attacking them.
[ ] Remove the whole "target" system => SIMPLIFY!
[ ] Whenever an enemy takes one of our tiles, we add the tiles to a list called "warTiles"
[ ] With a certain probability, ships will jump to one of these warTiles, and start attacking the enemy. (This is realistic: they heard someone entered their territory, and are now coming to stop him.)
[ ] Otherwise, ships will stay where they are, and conquer (explore/attack) there
[ ] When the war is over, the losing side should have a much smaller territory than the winning side. But, I can't be sure of that. I need to find a way to transfer a large part of someone's territory to other players.