Skip to content

kmushapho/unoJava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNO Game in Java

This project is a UNO card game implemented in Java, where you can play between a single player and the computer. It runs in the terminal/console and allows you to experience the fun of UNO in a simple, text-based format.

Features:

  • Single Player vs Computer: Play UNO against an AI opponent.

  • Classic UNO Rules: Includes standard UNO game rules such as drawing cards, skip, reverse, wild cards, and more.

  • Terminal Interface: A simple and easy-to-use terminal-based interface for interacting with the game.

  • Game Flow: The game follows the standard UNO flow with each player taking turns to play their cards until one wins by getting rid of all their cards.

How to Run the Game:

Prerequisites:

  • Java 8 or higher is required to run the game.

Steps to Run:

  1. Clone the repository to your local machine:
    git clone https://github.com/kmushapho/unoJava.git
  1. Navigate to the project directory
    cd unoJava/src
  1. Compile the Java file
    javac Main.java
  1. Run the Game
    java Main.java

How the Game Works

  • Turn-based play: You and the computer take turns to play cards.

  • Match Cards: To play a card, match it with the current card on the top of the discard pile by color or number.

  • Special Cards: Use special cards like skip, reverse, and wild cards strategically to gain an advantage.

Contributing

Contributions are always welcome! If you would like to contribute to any of the projects, feel free to fork the repository, make changes, and submit a pull request. Suggestions for new features or improvements are also encouraged!

About

This is a simple implementation of the classic UNO card game built in Java, designed to run directly in the terminal. Players can enjoy a fully interactive UNO experience, including card drawing, playing, and matching, all within a console-based environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages