This forum is now read-only. Please use our new forums! Go to forums
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
@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
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency