change rules
Life is complex:
0. We invite more people.
1. People invited to the party can arrive different
times. In our case its up to some random time and
the scheduler.
2. People invited are shy, they will only eat if
people that are confirmed to be there are also
eating. If we don't eat we have no trash to
throw away.
3. People take random amount of time to eat food.
4. People invited are weak minded, if someone did not
throw away their trash they follow and become
messy and also do not throw away their own trash.
Now results can vary, here's some examples, but pretty
much it should be clear how buggy this is.
Run 1:
Before party:
FOOD: [ ******************************* ]
TRASH: [ ]
After party:
FOOD: [ * ***************************** ]
TRASH: [ ******************************* ]
Run 2:
Before party:
FOOD: [ ******************************* ]
TRASH: [ ]
After party:
FOOD: [ ****************************** ]
TRASH: [ ******************************* ]
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
1 file changed