Skip to content

Commit

Permalink
[#81] Pavan/Dhanu - Showing next position of double coin.
Browse files Browse the repository at this point in the history
What changes have you made?

* Passing an additional parameter i.e., isPaired while asking the next position of the double coin

Why do we need this change?

* So that Player can get to know what is the next position of double coin.
  • Loading branch information
TPKalyan authored and Salman-Shaik committed Mar 10, 2018
1 parent afe1362 commit c176408
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/js/ludoBoard.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const showMovableCoins = function(coins){
const showCoin = function(coin){
let ele = getElement(`#${coin.color}-${coin.id}`);
ele.classList.replace('hide','show');
let textElement = getElement(`#${coin.color}-${coin.id}-text`);
textElement.classList.replace('hide','show');
};

const isDestinationCell = function(cellID){
Expand Down

0 comments on commit c176408

Please sign in to comment.