Skip to content

Commit

Permalink
Finished TwentyOne Project
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyrexian committed Sep 16, 2024
1 parent bcfae2c commit 2d288db
Show file tree
Hide file tree
Showing 38 changed files with 401 additions and 54 deletions.
Binary file not shown.
Binary file not shown.
Binary file modified TwentyOne/TwentyOne/.vs/ProjectEvaluation/twentyone.strings.v9.bin
Binary file not shown.
Binary file modified TwentyOne/TwentyOne/.vs/TwentyOne/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified TwentyOne/TwentyOne/.vs/TwentyOne/SemanticSymbols.db
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified TwentyOne/TwentyOne/.vs/TwentyOne/v17/.futdcache.v2
Binary file not shown.
Binary file modified TwentyOne/TwentyOne/.vs/TwentyOne/v17/.suo
Binary file not shown.
106 changes: 73 additions & 33 deletions TwentyOne/TwentyOne/.vs/TwentyOne/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,45 @@
"Version": 1,
"WorkspaceRootPath": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|f:\\tech-academy\\the-tech-academy-c-sharp-projects\\twentyone\\twentyone\\dealer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|solutionrelative:dealer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|f:\\tech-academy\\the-tech-academy-c-sharp-projects\\twentyone\\twentyone\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|solutionrelative:program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|f:\\tech-academy\\the-tech-academy-c-sharp-projects\\twentyone\\twentyone\\card.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|solutionrelative:card.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|f:\\tech-academy\\the-tech-academy-c-sharp-projects\\twentyone\\twentyone\\twentyonegame.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|solutionrelative:twentyonegame.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|f:\\tech-academy\\the-tech-academy-c-sharp-projects\\twentyone\\twentyone\\deck.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|solutionrelative:deck.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\IWalkAway.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:IWalkAway.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|f:\\tech-academy\\the-tech-academy-c-sharp-projects\\twentyone\\twentyone\\player.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|solutionrelative:player.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|f:\\tech-academy\\the-tech-academy-c-sharp-projects\\twentyone\\twentyone\\card.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|solutionrelative:card.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Dealer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:Dealer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|f:\\tech-academy\\the-tech-academy-c-sharp-projects\\twentyone\\twentyone\\game.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|solutionrelative:game.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Player.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:Player.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|f:\\tech-academy\\the-tech-academy-c-sharp-projects\\twentyone\\twentyone\\twentyonedealer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|solutionrelative:twentyonedealer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\TwentyOneGame.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:TwentyOneGame.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|f:\\tech-academy\\the-tech-academy-c-sharp-projects\\twentyone\\twentyone\\twentyonerules.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|solutionrelative:twentyonerules.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Game.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:Game.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|f:\\tech-academy\\the-tech-academy-c-sharp-projects\\twentyone\\twentyone\\iwalkaway.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{D8996FC3-C709-4252-95AE-853093D9E96A}|TwentyOne.csproj|solutionrelative:iwalkaway.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
Expand All @@ -42,11 +50,37 @@
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 7,
"SelectedChildIndex": 3,
"Children": [
{
"$type": "Document",
"DocumentIndex": 3,
"DocumentIndex": 8,
"Title": "TwentyOneRules.cs",
"DocumentMoniker": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\TwentyOneRules.cs",
"RelativeDocumentMoniker": "TwentyOneRules.cs",
"ToolTip": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\TwentyOneRules.cs",
"RelativeToolTip": "TwentyOneRules.cs",
"ViewState": "AgIAAEAAAAAAAAAAAAAgwFwAAAABAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-09-16T21:07:18.738Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 7,
"Title": "TwentyOneDealer.cs",
"DocumentMoniker": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\TwentyOneDealer.cs",
"RelativeDocumentMoniker": "TwentyOneDealer.cs",
"ToolTip": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\TwentyOneDealer.cs",
"RelativeToolTip": "TwentyOneDealer.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAoAAAANAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-09-16T20:29:38.96Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 9,
"Title": "IWalkAway.cs",
"DocumentMoniker": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\IWalkAway.cs",
"RelativeDocumentMoniker": "IWalkAway.cs",
Expand All @@ -58,85 +92,91 @@
},
{
"$type": "Document",
"DocumentIndex": 4,
"DocumentIndex": 0,
"Title": "Dealer.cs",
"DocumentMoniker": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Dealer.cs",
"RelativeDocumentMoniker": "Dealer.cs",
"ToolTip": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Dealer.cs",
"RelativeToolTip": "Dealer.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAqwBUAAAAAAAAAAAAAAA==",
"ViewState": "AgIAAAAAAAAAAAAAAAAqwAUAAAAQAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-08-01T03:20:27.22Z"
"WhenOpened": "2024-08-01T03:20:27.22Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 5,
"DocumentIndex": 4,
"Title": "Player.cs",
"DocumentMoniker": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Player.cs",
"RelativeDocumentMoniker": "Player.cs",
"ToolTip": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Player.cs",
"RelativeToolTip": "Player.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAwAAAAoAAAAAAAAAA==",
"ViewState": "AgIAAAAAAAAAAAAAAAAqwBMAAAAoAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-08-01T03:18:32.39Z"
"WhenOpened": "2024-08-01T03:18:32.39Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 6,
"DocumentIndex": 2,
"Title": "TwentyOneGame.cs",
"DocumentMoniker": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\TwentyOneGame.cs",
"RelativeDocumentMoniker": "TwentyOneGame.cs",
"ToolTip": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\TwentyOneGame.cs",
"RelativeToolTip": "TwentyOneGame.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABgAAAAJAAAAAAAAAA==",
"ViewState": "AgIAAFMAAAAAAAAAAAD4v14AAAAhAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-07-31T23:42:03.944Z"
"WhenOpened": "2024-07-31T23:42:03.944Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 7,
"DocumentIndex": 6,
"Title": "Game.cs",
"DocumentMoniker": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Game.cs",
"RelativeDocumentMoniker": "Game.cs",
"ToolTip": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Game.cs",
"RelativeToolTip": "Game.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABAAAAAXAAAAAAAAAA==",
"ViewState": "AgIAAAAAAAAAAAAAAAAqwBgAAAApAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-07-31T23:32:20.488Z"
"WhenOpened": "2024-07-31T23:32:20.488Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"DocumentIndex": 5,
"Title": "Card.cs",
"DocumentMoniker": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Card.cs",
"RelativeDocumentMoniker": "Card.cs",
"ToolTip": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Card.cs",
"RelativeToolTip": "Card.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABgAAAAOAAAAAAAAAA==",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-07-31T23:21:47.831Z"
"WhenOpened": "2024-07-31T23:21:47.831Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"DocumentIndex": 3,
"Title": "Deck.cs",
"DocumentMoniker": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Deck.cs",
"RelativeDocumentMoniker": "Deck.cs",
"ToolTip": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Deck.cs",
"RelativeToolTip": "Deck.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABEAAAAnAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-07-31T22:27:41.353Z"
"WhenOpened": "2024-07-31T22:27:41.353Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"DocumentIndex": 1,
"Title": "Program.cs",
"DocumentMoniker": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Program.cs",
"RelativeDocumentMoniker": "Program.cs",
"ToolTip": "F:\\Tech-academy\\The-Tech-Academy-C-Sharp-Projects\\TwentyOne\\TwentyOne\\Program.cs",
"RelativeToolTip": "Program.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAABYAAAAAAAAAAAAAAA==",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAIAAAAQAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-07-31T22:21:21.354Z",
"EditorCaption": ""
Expand Down
5 changes: 5 additions & 0 deletions TwentyOne/TwentyOne/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ public struct Card
{
public Suit Suit { get; set; }
public Face Face { get; set; }

public override string ToString()
{
return string.Format("{0} of {1}", Face, Suit);
}
}

public enum Suit
Expand Down
1 change: 1 addition & 0 deletions TwentyOne/TwentyOne/Dealer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace TwentyOne
{
Expand Down
10 changes: 7 additions & 3 deletions TwentyOne/TwentyOne/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ namespace TwentyOne
{
public abstract class Game
{
public List<string> Players { get; set; }
private List<Player> _players = new List<Player>();
private Dictionary<Player, int> _bets = new Dictionary<Player, int>();

public List<Player> Players { get { return _players; } set { _players = value; } }
public string Name { get; set; }
public string Dealer { get; set; }
public Dictionary<Player, int> Bets { get { return _bets; } set { _bets = value; } }

public abstract void Play();

public virtual void ListPlayers()
{
foreach (string player in Players)
foreach (Player player in Players)
{
Console.WriteLine(player);
}
Expand Down
31 changes: 26 additions & 5 deletions TwentyOne/TwentyOne/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,41 @@ namespace TwentyOne
{
public class Player
{
public List<Card> Hand { get; set; }
public string Name { get; set; }
public Player(string name, int beginningBalance)
{
Hand = new List<Card>();
Balance = beginningBalance;
Name = name;
}
private List<Card> _hand = new List<Card>();
public List<Card> Hand { get { return _hand; } set { _hand = value; } }
public int Balance { get; set; }
public bool isActivelyPlaying { get; set; }
public string Name { get; set; }
public bool IsActivelyPlaying { get; set; }
public bool Stay { get; set; }

public bool Bet(int amount)
{
if (Balance - amount < 0)
{
Console.WriteLine("You do not have enough to place a bet that size.");
return false;
}
else
{
Balance -= amount;
return true;
}
}
public static Game operator +(Game game, Player player)
{
game.Players.Add(player.Name);
game.Players.Add(player);
return game;
}

public static Game operator -(Game game, Player player)
{
game.Players.Remove(player.Name);
game.Players.Remove(player);
return game;
}

Expand Down
30 changes: 22 additions & 8 deletions TwentyOne/TwentyOne/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Text;
using System.Threading.Tasks;
using System.IO;


namespace TwentyOne
Expand All @@ -8,16 +9,29 @@ class Program
{
static void Main(string[] args)
{

Deck deck = new Deck();
deck.Shuffle(3);

foreach (Card card in deck.Cards)
Console.WriteLine("Welcome to the Grand Hotel and Casino. Let's start by telling me your name.");
string playerName = Console.ReadLine();
Console.WriteLine("And how much money did you bring today?");
int bank = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Hello, {0}. Would you like to play a game of 21 right now?", playerName);
string answer = Console.ReadLine().ToLower();
if (answer == "yes" || answer == "yeah" || answer == "y")
{
Console.WriteLine(card.Face + " of " + card.Suit);
}
Console.WriteLine(deck.Cards.Count);
Player player = new Player(playerName, bank);
Game game = new TwentyOneGame();
game += player;
player.IsActivelyPlaying = true;
while (player.IsActivelyPlaying && player.Balance > 0)
{
game.Play();
}
game -= player;
Console.WriteLine("Thank you for playing!");
}
Console.WriteLine("Feel free to look around the casino. Bye for now.");
Console.ReadLine();


}
}

Expand Down
16 changes: 16 additions & 0 deletions TwentyOne/TwentyOne/TwentyOneDealer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TwentyOne
{
public class TwentyOneDealer : Dealer
{
private List<Card> _hand = new List<Card>();
public List<Card> Hand { get { return _hand; } set { _hand = value; } }
public bool Stay { get; set; }
public bool isBusted { get; set; }
}
}
Loading

0 comments on commit 2d288db

Please sign in to comment.