Git Product home page Git Product logo

blackjack's Introduction

Blackjack

프로젝트 설명

블랙잭 게임을 간단하게 파이썬으로 구현했습니다.

게임룰

카드를 받아 숫자의 합이 21에 가까운 쪽이 승리하는 게임.

Computer = Dealer

사용자 = Player

52개의 카드에서 랜덤한 2장이 딜러와 플레이어에게 주어집니다.

A카드의 경우 1과 11중에 선택할 수 있습니다.

J,Q,K는 10으로 계산됩니다.

플레이어는 Hit과 Stand 중에 선택할 수 있습니다.

Hit을 선택할 경우 카드를 한 장 더 받습니다.

Stand를 선택할 경우 카드를 그만 받게 됩니다.

딜러는 17보다 작은 경우에만 카드가 추가됩니다.

21을 초과하면 패, 21일 경우 승.

Collaborator

이현주 (Player class, Dealer class, main flow), 김정민 (Game class, main flow)

설치 및 사용법

Git bash를 실행시킨 후 git clone https://github.com/k156/Blackjack.git

모듈

import random

from functools import reduce

import os

blackjack's People

Contributors

eeuoo avatar k156 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.