- 3

$(document).ready(function() { //initialize all variables; var damagedone; var comment; var movecount; var attack

$(document).ready(function() { //initialize all variables; var damagedone; var comment; var movecount; var attack1 = $('#attack0'); var attack2 = $('#attack1'); var attack3 = $('#attack2'); var attack4 = $('#attack3'); var attacks = $('.attacklist'); var options = $('.option'); var commentBox = $('.commentbox'); var selfhp = $('#selfhp'); var opponenthp = $('#opponenthp'); var selfhpnum = $('#selfcurrenthp'); var opponenthpnum = $('#opponentcurrenthp'); var mylastmoveused = undefined; var enemylastmoveused = undefined; var meneedtorecharge = false; var enemyneedtorecharge = false; var finished = false; var messagewritten = false; //pokemon constructor class class Pokemon { constructor(name, moves, hp, cry, weakness, resistant, frontimage, backimage) { this.name = name; this.moves = moves; this.hp = hp; this.cry = cry; this.weakness = weakness; this.resistant = resistant; this.frontimage =

17th Oct 2020, 2:58 PM
Rishabh
1 Answer
+ 1
You can create a new code bit on code section. Follow guidelines https://www.sololearn.com/discuss/1316935/?ref=app
17th Oct 2020, 3:02 PM
</๐šœ๐šŒ๐š˜๐š›๐š™๐š’๐š˜๐š—>
</๐šœ๐šŒ๐š˜๐š›๐š™๐š’๐š˜๐š—> - avatar