[프로그램소스]블랙젝 프로그램
- 최초 등록일
- 2006.06.22
- 최종 저작일
- 2006.06
- 7페이지/ 압축파일
- 가격 1,000원
소개글
블랙젝을 프로그램을 통해 구현하였다.
* 프로그램 소스
* 프로그램 보고서
* 프로그램 문제
가 첨부되어있다.
컴파일 실행환경
Microsoft Visual C++ 6.0
본문내용
프로그램의 구성 및 알고리즘
프로그램의 구성
A- 프로그램은 크게 PLAYER, GAME 클래스로 이루어져있다.
B- HUMAN, MEEK, RANDOM, DEALER 클래스는 PLAYER클래스의 derived클래스이다.
C- 프로그램은 GAME 클래스 에서 PALYER 클래스의 멤버함수를 호출하는 식으로 이루어진다.
Organization of PLAYER class
A- members
- name : a name of player
- bet, money : an amount of betting, an amount of haven money
- point : score of match
- *head, *tail : it links players who have same tendency.
B- core methods
- PLAYER() : a class initialization
- clear() : it deletes player haven all cards which are managed by linked-list
- print_cards() : it has two important role. First of all, is print player haven all cards. Secondary, it calculates point of each player, and returns point.
- conc() : it conclude winning or losing of each player.
- get_in() : this method contains operation about linked-list. So this gives some card to player.
Organization of GAME class
A- members
- *human, *meek, *random, *dealer : 각각의 변수들은 같은 성향의
플레이어들을 묶어두기 위한 포인터이다.
- pack, num_h, num_m, num_r : pack은 게임에 필요한 카드의 묶음 수이다.
예를들어 총 플레이어가 9명이면 pack은 3이다. 그리고 num_x 변수들은 각 성향의 플레이어가 몇 명인지를 나타낸다.
압축파일 내 파일목록
asn3.cpp
asn3.exe
blackjack.doc
~$ackjack.doc
assign-3-blackjack.pdf
참고 자료
없음