Fixed Eating Check
This commit is contained in:
@@ -60,7 +60,7 @@ int main(int argc, char* argv[])
|
||||
bool AllPhilosophersFull(PhilosopherData PhilosopherList[], int numPhilosophers)
|
||||
{
|
||||
for (int i = 0; i < numPhilosophers; i++)
|
||||
if (PhilosopherList[i].eatingCount != 2)
|
||||
if (PhilosopherList[i].eatingCount < 2)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user