Skip to content

hsna674/FinalProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Library README

Overview

Welcome to the Game Library! This Java program is a collection of eight different games, each offering a unique and entertaining experience. Whether you're looking to challenge your mind or just have some fun, you'll find a game that suits your mood.

Games Included

  1. Tic-Tac-Toe
  2. Ping Pong
  3. BattleShip
  4. 2048
  5. Snake
  6. Tetris
  7. Connect 4
  8. Space Invaders

Getting Started

Prerequisites

  • Java Development Kit (JDK) 8 or higher: Ensure you have JDK installed on your system.
  • IDE (Integrated Development Environment): Recommended IDEs are IntelliJ IDEA, Eclipse, or NetBeans.

Installation

  1. Clone the repository:
    git clone https://github.com/hsna674/FinalProject.git
  2. Navigate to the project directory:
    cd FinalProject

Running the Game Library

  1. Open the project in your preferred IDE.
  2. Navigate to the GameLibraryDriver.java file located in the src directory.
  3. Run the GameLibraryDriver.java file.

Command Line Execution

If you prefer running the program from the command line:

  1. Navigate to the src directory:
    cd src
  2. Compile the Java files:
    javac GameLibraryDriver.java
  3. Run the compiled program:
    java GameLibraryDriver

How to Play

Upon launching the Game Library, you will be presented with a menu to select one of the eight games. Use the corresponding number to choose a game and follow the on-screen instructions to play.

Game Controls

  • Tic Tac Toe: Click in the place where you want to place your piece
  • Ping Pong: Use the W and S keys to move Player 1 and the Up and Down arrows to move Player 2
  • BattleShip: Click cells to attempt to sink the 2 ships.
  • 2048: Use the arrow keys to move the board around.
  • Snake: Use the arrow keys to move the Snake around and eat the "Apples", which are red dots.
  • Tetris: Use the Left and Right arrow keys to move the pieces left and right. Use the Up key to rotate the pieces.
  • Connect 4: Click on the button above the column where you want to drop your piece.
  • Space invaders: Use the Left and Right arrow keys to move the player left and right. Use the Space bar to shoot projectiles at the aliens.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature-name
  3. Make your changes and commit them:
    git commit -m 'Add some feature'
  4. Push to the branch:
    git push origin feature-name
  5. Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Special thanks to the open-source community for providing the tools and libraries used in this project.

Enjoy the games!