This project was made for computer Programming I Acedemic year 2021 by Preawpan Thamapipol
This Card Game include 2 main game including Pok Deng
and Black Jack
game. In every game user will input all
player's name then a list of player object will be created by name in that list. then lets play, the game will loop
untill has only one player who has money more than 0. in the other hand,all people except that guy have no money
anymore (less than 0). When a game start the graphical output will show each player hand. At the end, The game will show
the winner and update score into CSV file.
- here is the overview of this project
https://youtu.be/nXyqYJq4f0w
- play BlackJack
- play Pokdeng
At first Program will ask user what game to play whether BlackJack or PokDeng as picture below
for Example, I will choose blackJackGame
if I selected show rule
and This is overview of blackjackgame
graphic is used to show player hand as shown below
and if I choose to see wincount, it will be same as below
** NOTE **
screen here is the full screen but real canvas size is 600 x 420. So, the picture above is look so disproportionate
This is requirement for this project
NOTE Reccomand to run via terminal because it will better color quality(in rich module)
All my class that I am going to implement are
-
Card
: a deck of card -
Player
: Parent Class of Each game player -
BlackJackPlayer
: BlackJackPlayer (child class of Player) -
PokDengPlayer
: PokDengplayer (child class of Player) -
BaseGame
: Parent Class of each game/ every game should have its -
BlackJack.Computer_Player
: BlackJack's computer player (child class of BlackJackPlayer) -
Black_Jack.Game
: BlackJack main game (child class of BaseGame) -
Pok_deng.Computer_Player
: PokDeng's computer player (child class of PokDengPlayer) -
Pok_deng.Game
: PokDeng main game (child class of BaseGame) -
Save
: database of the game which write data(name and money and win count) into CSV file. -
Screen
: Display a player hand screen with turtle graphic
In my card Game Project have 9 main file which are
-
Hand.py: module file for Player that contain
Screen
class that illustrate each player hand -
Player.py: module file that contain all type of Player including
Player
,BlackJackPlayer
, andPokDengPlayer
class -
BaseGame.py: module file for anygame that contain
BaseGame
class -
Black_Jack.py: sub file that are one
BlackJack
entile game which containBlack_Jack.ComputerPlayer
andBlack_Jack.Game
class and main function for run a entireBlackJack
game -
Pok_Deng.py: sub file that are one
PokDeng
entile game which containPok_Deng.ComputerPlayer
andPok_Deng.Game
class and main function for run a entirePok Deng
game -
database.py: module file that contain
Save
class -
history.csv: CSV file for collecting data in
database
-
main.py: main file that run entire thing