/black-jack

python写的21点游戏,完全使用核心类库,适合新手练手

Primary LanguagePython

请输入您的名字(1-8字符):pei
pei加入了游戏!
请输入电脑玩家数目(1-5):4
Bot_1加入了游戏!
Bot_2加入了游戏!
Bot_3加入了游戏!
Bot_4加入了游戏!
游戏开始!
计分板

             ___________________________________________
            |       name                 |      token   |
            ++++++++++++++++++++++++++++++++++++++++++++
            |       pei                |     1000         |
            |____________________________|______________|


             ___________________________________________
            |       name                 |      token   |
            ++++++++++++++++++++++++++++++++++++++++++++
            |       Bot_1              |     1000         |
            |____________________________|______________|


             ___________________________________________
            |       name                 |      token   |
            ++++++++++++++++++++++++++++++++++++++++++++
            |       Bot_2              |     1000         |
            |____________________________|______________|


             ___________________________________________
            |       name                 |      token   |
            ++++++++++++++++++++++++++++++++++++++++++++
            |       Bot_3              |     1000         |
            |____________________________|______________|


             ___________________________________________
            |       name                 |      token   |
            ++++++++++++++++++++++++++++++++++++++++++++
            |       Bot_4              |     1000         |
            |____________________________|______________|

庄家是:pei
pei拿牌>>>

         _______         _______
        |       |        |       |
        |   ♣   |        |   ♣   |
        |   Q   |        |   3   |
        |_______|        |_______|

Bot_1拿牌>>>

         _______         _______
        |       |        |       |
        |   ++  |        |   ♠   |
        |   ++  |        |   10   |
        |_______|        |_______|

Bot_2拿牌>>>

         _______         _______
        |       |        |       |
        |   ++  |        |   ♦   |
        |   ++  |        |   6   |
        |_______|        |_______|

Bot_3拿牌>>>

         _______         _______
        |       |        |       |
        |   ++  |        |   ♥   |
        |   ++  |        |   2   |
        |_______|        |_______|

Bot_4拿牌>>>

         _______         _______
        |       |        |       |
        |   ++  |        |   ♦   |
        |   ++  |        |   K   |
        |_______|        |_______|

要牌(y)y

pei要牌

         _______         _______         _______
        |       |        |       |        |       |
        |   ♣   |        |   ♣   |        |   ♣   |
        |   Q   |        |   3   |        |   2   |
        |_______|        |_______|        |_______|

要牌(y)pei要牌

         _______         _______         _______         _______
        |       |        |       |        |       |        |       |
        |   ♣   |        |   ♣   |        |   ♣   |        |   ♣   |
        |   Q   |        |   3   |        |   2   |        |   5   |
        |_______|        |_______|        |_______|        |_______|

要牌(y)n
pei不要牌
Bot_1要牌

         _______         _______         _______
        |       |        |       |        |       |
        |   ++  |        |   ♠   |        |   ♣   |
        |   ++  |        |   10   |        |   A   |
        |_______|        |_______|        |_______|

Bot_1要牌

         _______         _______         _______         _______
        |       |        |       |        |       |        |       |
        |   ++  |        |   ♠   |        |   ♣   |        |   ♦   |
        |   ++  |        |   10   |        |   A   |        |   3   |
        |_______|        |_______|        |_______|        |_______|

Bot_1不要牌
Bot_2要牌

         _______         _______         _______
        |       |        |       |        |       |
        |   ++  |        |   ♦   |        |   ♦   |
        |   ++  |        |   6   |        |   4   |
        |_______|        |_______|        |_______|

Bot_2不要牌
Bot_3要牌

         _______         _______         _______
        |       |        |       |        |       |
        |   ++  |        |   ♥   |        |   ♠   |
        |   ++  |        |   2   |        |   5   |
        |_______|        |_______|        |_______|

Bot_3要牌

         _______         _______         _______         _______
        |       |        |       |        |       |        |       |
        |   ++  |        |   ♥   |        |   ♠   |        |   ♦   |
        |   ++  |        |   2   |        |   5   |        |   5   |
        |_______|        |_______|        |_______|        |_______|

Bot_3不要牌
Bot_4不要牌
pei获胜!
pei

         _______         _______         _______         _______
        |       |        |       |        |       |        |       |
        |   ♣   |        |   ♣   |        |   ♣   |        |   ♣   |
        |   Q   |        |   3   |        |   2   |        |   5   |
        |_______|        |_______|        |_______|        |_______|

Bot_1

         _______         _______         _______         _______
        |       |        |       |        |       |        |       |
        |   ♣   |        |   ♠   |        |   ♣   |        |   ♦   |
        |   6   |        |   10   |        |   A   |        |   3   |
        |_______|        |_______|        |_______|        |_______|

Bot_2

         _______         _______         _______
        |       |        |       |        |       |
        |   ♣   |        |   ♦   |        |   ♦   |
        |   7   |        |   6   |        |   4   |
        |_______|        |_______|        |_______|

Bot_3

         _______         _______         _______         _______
        |       |        |       |        |       |        |       |
        |   ♥   |        |   ♥   |        |   ♠   |        |   ♦   |
        |   3   |        |   2   |        |   5   |        |   5   |
        |_______|        |_______|        |_______|        |_______|

Bot_4

         _______         _______
        |       |        |       |
        |   ♠   |        |   ♦   |
        |   Q   |        |   K   |
        |_______|        |_______|

继续游戏请输入(y)n
good bye!