#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;










