Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

U-Card

U-Card is a simple console-based card game written in C++. It was originally created for a student project and has since been released for learning, study, and further development.

Features

  • Two-player game against the computer
  • Five-card hand comparison
  • Console-based card display
  • Keyboard-driven game flow
  • Windows and Dev-C++ project configuration

Requirements

  • C++ compiler
  • Windows operating system
  • Dev-C++ (optional; the project includes Dev-C++ configuration files)

Running the Game

  1. Open the project from cardgame/ in Dev-C++ or another compatible C++ IDE.
  2. Build and run the project.
  3. Select a player and follow the on-screen keyboard prompts.

The game uses Windows-specific console functions and therefore is intended to run on Windows.

Game Flow

  1. Choose a player.
  2. Deal five cards.
  3. Compare the lowest-ranked cards.
  4. View the final score and result.
  5. Play another round or quit.

Project Structure

cardgame/
└── Card GAme/
    ├── main.cpp
    ├── UCard_private.h
    ├── Makefile.win
    └── Dev-C++ project files

Screenshots

Planned Improvements

  • Improve the card layout and console styling
  • Add clearer menus, prompts, and status information
  • Replace screen-clearing with a reusable UI function
  • Improve input handling and keyboard flow
  • Refactor the code into separate game, card, and UI modules
  • Replace raw arrays with safer C++ containers
  • Improve random-card generation and deck handling
  • Add animations, sound effects, and a polished result screen

License

See the LICENSE file for project licensing information.

About

This game is a card game with a console based interface and coded in c++.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages