#include<stdio.h>
struct craft{
char zergling;
int attack;
int def;
int hp ;
};int attack;
int def;
int hp ;
int main()
{
{
struct craft zergling2;
zergling0.attack=10;
zergling0.def=0;
zergling0.hp=100;
zergling1.attack=5;
zergling1.def=0;
zergling1.hp=50;
while(1){
if(zergling0.hp==0)
printf("1 ㅄ \n");
return 0;
zergling0.attack=10;
zergling0.def=0;
zergling0.hp=100;
zergling1.attack=5;
zergling1.def=0;
zergling1.hp=50;
while(1){
zergling0.hp -= zergling1.attack;
printf("1-->0공격 0 hp = %d \n",zergling0.hp) ;
if (zergling0.hp==0){
printf("0-->1공격 1 hp = %d \n",zergling1.hp) ;
if (zergling1.hp==0){
}printf("1-->0공격 0 hp = %d \n",zergling0.hp) ;
if (zergling0.hp==0){
break; }
zergling1.hp -= zergling0.attack;printf("0-->1공격 1 hp = %d \n",zergling1.hp) ;
if (zergling1.hp==0){
break;}
if(zergling0.hp==0)
printf("1 ㅄ \n");
return 0;