MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / Stuck

Function Stuck

assets/js/ludo.js:26–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 return false;
25}
26function 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}
39function changePlayer() {
40 if (num != 6) {
41 var text = document.getElementById('player');

Callers 1

randomMoveFunction · 0.85

Calls 1

DontHaveOtherFreeFunction · 0.85

Tested by

no test coverage detected