DEV Community

Discussion on: Daily Challenge #76 - Bingo! (or not...)

Collapse
 
andreasjakof profile image
Andreas Jakof • Edited

C#

public string Bingo(byte[] numbers)
{
    List<byte> bingo = new List<byte>{2,7,9,14,15};
    return bingo.All(x => numbers.Contains(x)) ? "WIN" : "LOSE";
}