mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
Spaces tend to cause annoyances in a Unix-style shell environment. This change fixes that.
28 lines
589 B
C#
28 lines
589 B
C#
namespace Blackjack
|
|
{
|
|
public class Player
|
|
{
|
|
public Player(int index)
|
|
{
|
|
Index = index;
|
|
Name = (index + 1).ToString();
|
|
Hand = new Hand();
|
|
SecondHand = new Hand();
|
|
}
|
|
|
|
public int Index { get; private set; }
|
|
|
|
public string Name { get; private set; }
|
|
|
|
public Hand Hand { get; private set; }
|
|
|
|
public Hand SecondHand { get; private set;}
|
|
|
|
public int RoundBet { get; set; }
|
|
|
|
public int RoundWinnings { get; set; }
|
|
|
|
public int TotalWinnings { get; set; }
|
|
}
|
|
}
|