int Game() { List <Player> Players = new List <Player>(); Players.Add(new Player(1, true)); Players.Add(new Player(2, false)); Players[0].Leading = true; //Set Player One to lead trick List <Card> deck = Deal.CreateDeck(); Decision.SetTrumps(deck, 3); //Set Spades as Trump Deal.DealToPlayers(Players, deck); Decision.DecideBids(Players); //Record Player 1 Hand HandRecord handRecord = Record.RecordHandInit(Players.FirstOrDefault(x => x.ID == 1)); //Write out bids WriteBids(Players); //Write out Hands WriteHands(Players); for (int i = 1; i < 11; i++) { Console.WriteLine("Game " + i); Decision.DecideCardToPlay(Players); Decision.PlayCard(Players, true); } //Work out wins foreach (Player player in Players) { Console.WriteLine("Player Wins: " + player.Wins + " Bid: " + player.Bid); } //Record if PlayerOne was successful if (Players.FirstOrDefault(x => x.ID == 1).Wins == Players.FirstOrDefault(x => x.ID == 1).Bid) { handRecord.GameWon = 1; } CSVWriter.WriteHandResult(handRecord); return(handRecord.GameWon); }