Posts

Showing posts from November, 2020

Dicegame

< html >      < head >      < script   type = "text/JavaScript" >       var   total1 = 0 ;       var   total2 = 0 ;       function   rollDice1 ()      {          var   die1 , die2 , d1 , d2 ;          die1 = document . getElementById ( "die1" );       die2 = document . getElementById ( "die2" );       status1 = document . getElementById ( "status1" );       scoreof1  =  document . getElementById ( "scoreof2" );       d1 = Math . floor ( Math . random ()*  6  ) +  1 ;       d2 = Math . floor ( Math . random ()*  6  ) +  1 ;      ...