()
| 24 | return false; |
| 25 | } |
| 26 | function Stuck() { |
| 27 | var text = document.getElementById('player'); |
| 28 | if (onboard[currpawn] == 0 || currPos + num > 44) { |
| 29 | if (DontHaveOtherFree() || currPos + num > 44) { |
| 30 | var badtext = document.getElementById('badtext'); |
| 31 | badtext.innerText = "Unfortunatlly you stuck"; |
| 32 | clicked = false; |
| 33 | var dice = document.getElementById('dice'); |
| 34 | dice.style.backgroundImage = "url(../assets/Images/ludo/dice.gif)"; |
| 35 | window.setTimeout(changePlayer, 1000); |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | function changePlayer() { |
| 40 | if (num != 6) { |
| 41 | var text = document.getElementById('player'); |
no test coverage detected