Skip to content

therealdarkflamemaster/Java_docus

Repository files navigation

Java Card Game

This project is built with IDE Eclipse.

Like the name of this project, I have made a card game and the rules are rather complicate.

  • starting interface

    image-20210517000225202

  • Setting interface

    image-20210517000303407

  • Playing interface

    image-20210517000326060

    image-20210517000359605

Introduction

It is possible to play this game with 3 or 4 persons or otherwise some virtual players are provided.

There are three levels of difficulties with these virtual players, which are Easy, Normal, Difficult. This part is the implementation of the Strategy Design Pattern.

And it's possible to play in the terminal and in the graphic interface in the same time, which is realized by Multi-Thread.

  • Design Patterns in this project

    • Visitor

      ... used for calculate the score of each player. After each round of game, the class of Visitor will visit each player's hand cards and calculate their score of this round.

      file : VisitordeJest.java

    • Strategy

      ... used for building the virtual players which has three levels of difficulties.

      file :

    • Singleton

      ... used for many classes to keep the changes in memory like the the card deck which is the distributor of the cards.

      file : Draw_deck.java

    • Iterator

      ... used for traverse all the Collections used in the project

      file : Draw_deck.java

  • Swing Graphic

    all of classes in the folder Vue of the project.

    example :

    image-20210517001122174

  • VMC structure

    image-20210517000632899

  • Multi-Thread

    image-20210517001255824

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages