public void Live()
{
foreach (var sunrise in daysInLife)
{
while(mood.IsLow)
{
CountBlessings();
}
var neighbours = from person in People
where person.IsNeighbour
select person;
foreach(var person in neighbours)
{
if(person.IsCrying)
{
Cry();
}
else if (person.IsLaughing)
{
Laugh();
}
else if (person.IsHungry)
{
GiveFood();
}
else if (person.IsCold)
{
GiveBlanket();
}
else if (person.IsOppressed)
{
Authorities.ApplyFreedom(person);
}
}
do
{
DrinkCoffee();
Think();
Code();
}
while (!Sleeping);
}
}
|
Comments
Post a Comment