This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Argo Liivanurm
over 9 years

For some reason my ties count as losses and ties

Tried to make a playable version in the browser but scorecounting is off. Because tie counts as loss and tie. Can someone say why? Here is full messy code.

Answer 544624c852f8634d7800bb8d

0 votes

Permalink

@Argo, look at the following skeleton-part-of-compare-function

 var compare = function(choice1,choice2) {
    if (conditionA) {
         //your code if condition1 is true
     } else if (conditionB) {
           if (condition2) {
               //conditionA is false
               //conditionB is true
               //condition2 is true
               //your code
            } else {
               //conditionA is false
               //conditionB is true
               //condition2 is false
               //your code
             }
    }
    };

xx

points
Submitted by Leon
over 9 years