Skip to content
Permalink
Browse files
sorry guys
hope this might be useful.
  • Loading branch information
protopad committed Mar 2, 2020
1 parent 00cb953 commit 68f8614bff1800a60286e8c3400df0b3e8675008
Showing 1 changed file with 13 additions and 0 deletions.
@@ -0,0 +1,13 @@
bool WinCondition(n,i,j,EnemiesAlive)
{ EnemiesAlive = false;
for (int i=0;i<15;i++)
{
for (int n = 0; n< 15 ; n++)
for (int j = 0 ; j < 2 ; j++)
{
if ((monsterArray[j].x == i) && (monsterArray[i].y == j) && (monsterArray[j].Alive)) EnemiesAlive = true;
}
}
if(EnemiesAlive == false)
std::cout<<"You Win!!";
}

0 comments on commit 68f8614

Please sign in to comment.