Skip to content

Commit 8147fb7

Browse files
committed
Make an indicative change about whose turn it is
1 parent ef193bf commit 8147fb7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎assignments/prototypes.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,14 @@ function turnSimulator(hero, villain) {
219219
console.log(`Game is over.`);
220220
} else {
221221
if ((Math.floor(Math.random() * 100) + 1) % 2 === 0) {
222-
222+
console.log(`It's Jace's turn.`)
223223
hero.checkHP();
224224
hero.magicMissile(villain);
225225
villain.checkHP();
226226
console.log(`----end of turn----`)
227227

228228
} else {
229+
console.log(`It's Jace's turn.`)
229230
villain.checkHP();
230231
villain.acidArrow(hero);
231232
hero.checkHP();

0 commit comments

Comments
 (0)