using System.Collections.Generic;
static Random rG = new Random ();
public static List < int >GenerateHand (int nCards)
List < int >hand = new List < int >();
for (int c = 0; c < nCards; c++)
cValue = rG.Next (1, 15);
public static void DisplayHand (List < int >hand)
Console.Write (c + ", ");
public static void Main ()
Console.WriteLine ("Welcome to the Game of War");
List < int >pHand = GenerateHand (26);
List < int >cHand = GenerateHand (26);
Console.WriteLine ("player's inital cards");
Console.WriteLine ("computer inital cards");
Console.WriteLine ("Press any key for next round");
Console.WriteLine ("there was a tie");
Console.WriteLine ("new card");
Console.WriteLine ("player's cards");
Console.WriteLine ("computer cards");
else if (cHand.Count > 0){