Enjoy programming more!
Kidspod is a post site which supports young programmers.
First step to join us.
Register as a member
For members

2017/09/20 18:23:31

MixJuice GET URL : kidspod.club/mj/351

031

  • No registered tag exist.

SOURCE CODE

var hp = 10;
log("HP: ")
log(hp);
log("\n");
sleep(1000);

var at = rnd(20);
log("Attack: ");
log(at);
log("\n");
sleep(1000);

if(hp <= at){
  lc(13, 11);
  log("DEAD");
}
else{
  lc(13, 11);
  log("ALIVE");
}
sleep(2000);

COMMENT