using System.Collections.Generic;
public class HelloWorld {
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++){
public static void DisplayHand(List<int> hand){
public static void Main() {
Console.WriteLine("Welcome to the Game of War");
List<int> pHand = GenerateHand(12);
List<int> cHand = GenerateHand(12);
Console.WriteLine("Player's inital cards...");
Console.WriteLine("Computer's inital cards...");
while(pHand.Count != 0 || cHand.Count != 0){
Console.WriteLine("Enter any key, or press enter to proceed");
Console.WriteLine("Player Wins!");
else if(pHand[0]<cHand[0]){
Console.WriteLine("Computer Wins!");
else if(pHand[0]==cHand[0]){
Console.WriteLine("Player Wins!");
else if(pHand[1]<cHand[1]){
Console.WriteLine("Computer Wins!");
else if(pHand[1]==cHand[1]){
Console.WriteLine("Player Wins!");
else if(pHand[2]<cHand[2]){
Console.WriteLine("Computer Wins!");
else if(pHand[2]==cHand[2]){
Console.WriteLine("Player Wins!");
else if(pHand[3]<cHand[3]){
Console.WriteLine("Computer Wins!");
Console.WriteLine("Player's Hand");
Console.WriteLine("Computer's Hand");
Console.WriteLine("The Computer Wins The Game Of War...");
else if(cHand.Count == 0){
Console.WriteLine("Player Wins The Game Of War!!");