Professional Documents
Culture Documents
Classic-Dice Bcgame
Classic-Dice Bcgame
function CDAuto()
{
this.currentBet = 0;
this.betamount = 0;
this.stopped = true;
this.start = () => {
this.betamount =
parseFloat(document.querySelector('#betamount').value);
this.stopped = false;
this.stopButton.style.display = '';
this.startButton.style.display = 'none';
this.currentBet = this.betamount;
this.cplay();
}
this.stop = () => {
this.startButton.style.display = '';
this.stopButton.style.display = 'none';
this.stopped = true;
}
this.startButton.onclick = this.start;
this.stopButton.onclick = this.stop;
}