about | help | code help+videos | done | prefs |
Write a method to simulate one hand of "WAR" card game - The input will be two cards - the output will return the highest card (suit included) or the word "WAR" This message will be returned when the cards have the same card value - not regarding the suit. cardWar("S2", "S3") → "S3" cardWar("S8", "C2") → "S8" cardWar("SQ", "DK") → "DK" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy