Coder Social home page Coder Social logo

finalproject's Introduction

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.