Skip to content

Instantly share code, notes, and snippets.

@edhedges
Created November 29, 2011 14:30
Show Gist options
  • Save edhedges/1404987 to your computer and use it in GitHub Desktop.
Save edhedges/1404987 to your computer and use it in GitHub Desktop.
User class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HedgesBlackjack
{
class User : Player
{
private int _numWins = 0;
private int _numLosses = 0;
private int _numTies = 0;
private decimal _betAmount = 0;
public User(decimal m): base(m)
{
}
public int Wins
{
set
{
_numWins = value;
}
get
{
return _numWins;
}
}
public int Losses
{
set
{
_numLosses = value;
}
get
{
return _numLosses;
}
}
public int Ties
{
set
{
_numTies = value;
}
get
{
return _numTies;
}
}
public decimal Bet
{
set
{
_betAmount = value;
}
get
{
return _betAmount;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment