Skip to content

AnnaSmit1/HexGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hex Game Project

Welcome to the Hex Game Project! This project allows you to play the game Hex either locally on your machine or against other players over a network connection. You can play against other players as a client by connecting to a remote server using the specified IP and hostname. Alternatively, you can play locally with two players on the same machine.

Table of Contents

Features

  • Play Hex game locally between two players on the same machine.
  • Connect to a remote server to play against other players.
  • Configurable server IP and hostname for connecting to remote games.
  • User-friendly interface and easy setup.

How to Play

Hex is a strategy board game played on a hexagonal grid. The goal is to form a connected path between two opposite sides of the board with your color. One player uses one color (e.g., blue), and the other player uses another color (e.g., red).

Local Mode

In local mode, you can play Hex against another player on the same machine:

  1. Choose the local mode option in the main menu.
  2. The game will initialize, and you can begin playing by taking turns to place your pieces on the board.
  3. The game ends when one player forms a connected path from one side of the board to the other.

Network Mode

In network mode, you can play Hex against other players over a network connection:

  1. Choose the network mode option in the main menu.
  2. Provide the server IP address and hostname when prompted.
  3. The game will connect to the server, and you can begin playing against another player.
  4. Follow the in-game prompts to place your pieces and take turns.

Requirements

  • Java 17
  • Ensure you have any necessary dependencies installed (e.g., networking libraries if required).

Troubleshooting

  • Connection Issues: Ensure you have a stable internet connection and that the server IP and hostname are correct.
  • Game Issues: If you encounter any bugs or issues during gameplay, please report them in the GitHub repository's issues section.

License

This project is licensed under the GPL License.


We hope you enjoy playing the Hex Game! If you have any feedback or encounter any issues, please feel free to contact the project maintainers. Happy gaming!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages