yorchopolis/fish — Issue #19: Have artificial clients cast for fish
Author: yorchopolis
Created: 2011-11-29 23:29:58+00:00
State: open

An artificial client will cast for fish in a season based on the formula:
castAttempts = ((startingFish - startingFish / spawnFactor) / numFishers) * 2Greed / chanceOfCatch

Or so it seems to me at this point. The reasoning:
startingFish - startingFish/spawnFactor: How many fish we can take out in the season and have the bank replenish.
That number of sustainably fishable fish, divided by the number of Fishers, gives us each fisher's fair share.
We alter that number by two factors: the greed of the AI client, and the chance of catching a fish when we cast.

For now, have the artificial agent cast for all those fish in immediate sequence: cast, receive new gameState, cast again, etc.