Welcome to the Java Mini Projects repository! This is a collection of small Java projects that I am working on to learn and explore Java programming. Each project focuses on different concepts and techniques, providing hands-on experience to enhance my skills in Java development.
Feel free to clone this repository, explore the projects, contribute, or offer suggestions to improve the code!
Here are the projects included in this repository:
-
Mastermind
-
A simple implementation of the popular game Mastermind, where the player must guess a sequence of numbers.
-
Concepts covered: Loops, Arrays, Input/Output, and Game Logic.
-
-
Hangman
-
The classic word-guessing game Hangman, where the player must guess the letters in a word within a limited number of tries.
-
Concepts covered: Arrays, Strings, Loops, Conditional Statements.
-
-
Tic-Tac-Toe
-
A simple console-based Tic-Tac-Toe game for two players.
-
Concepts covered: Arrays, Loops, Input/Output, and Game Logic.
-
-
Fork the Repository
- Navigate to the original repository on GitHub
- Click the "Fork" button to create a copy in your GitHub account
-
Clone your forked repository
git clone https://github.com/kmushapho/java_mini_projects.git
-
Open in IntelliJ IDEA (or another Java IDE)
The projects are designed to be run in a Java IDE like IntelliJ IDEA. Ope
-
Compile and run a project
Each project is contained in its own folder. For example, to run the Hangman project, navigate to the hangman/ folder, then find the relevant .java file inside the src/ directory.``
Here’s how you can compile and run the Java files for each project:
- Navigate to the folder
cd hangman/src- Compile the Java file
javac Main.java
- Run the compiled Java class
java Main
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!