Add project files.
This commit is contained in:
34
BlackJ/Card.cs
Normal file
34
BlackJ/Card.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.Eventing.Reader;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using BlackJack;
|
||||
|
||||
namespace BlackJack
|
||||
{
|
||||
public class Card
|
||||
{
|
||||
public Suits Suit;
|
||||
public int Number;
|
||||
|
||||
public Card(Suits suit, int number)
|
||||
{
|
||||
|
||||
Suit = suit;
|
||||
if (number < 10)
|
||||
{
|
||||
Number = number;
|
||||
}
|
||||
else
|
||||
{
|
||||
Number = 10;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user