using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class BlackJackTools
{
/*
* 游戏规则
* 五龙 > 黑杰克 > 21点>20点>...> 5点 > 4点> 爆牌
* 1、五龙:五张牌且点数之和不超过21点
* 2、黑杰克:A + 10/J/Q/K
* 3、A可当1点也可当11点,2—9点数不变,10,J,Q,K都是10点
*
*
*
*
* **/
/// <summary>
/// 保存用过的牌
/// </summary>
public static List<int> usedList = new List<int>();
public static void StartGame()
{
usedList.Clear();
}
/// <summary>
/// 要牌
/// </summary>
public static int GetCard()
{
int number = -1;
using System.Collections;
using System.Collections.Generic;
public class BlackJackTools
{
/*
* 游戏规则
* 五龙 > 黑杰克 > 21点>20点>...> 5点 > 4点> 爆牌
* 1、五龙:五张牌且点数之和不超过21点
* 2、黑杰克:A + 10/J/Q/K
* 3、A可当1点也可当11点,2—9点数不变,10,J,Q,K都是10点
*
*
*
*
* **/
/// <summary>
/// 保存用过的牌
/// </summary>
public static List<int> usedList = new List<int>();
public static void StartGame()
{
usedList.Clear();
}
/// <summary>
/// 要牌
/// </summary>
public static int GetCard()
{
int number = -1;