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

Function stepRight

assets/js/ludo.js:104–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 currPos++;
103}
104function stepRight() {
105 var doc = document.getElementById(currpawn);
106 var curr = Number(doc.style.left.replace(/[a-z]/g, ''));
107 doc.style.left = (curr + step) + 'px';
108 currPos++;
109}
110var stepsRed = [];
111var stepsYellow = [];
112var stepsBlue = [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected