An open API service indexing awesome lists of open source software.

https://github.com/ornella-gigante/horse-racesimulator-multithreading

This project simulates a horse race where each horse runs in parallel using multithreading in Java.
https://github.com/ornella-gigante/horse-racesimulator-multithreading

dom-manipulation java java8 maven multithreading

Last synced: 18 days ago
JSON representation

This project simulates a horse race where each horse runs in parallel using multithreading in Java.

Awesome Lists containing this project

README

          

# ๐ŸŽ Horse Race Simulator

## ๐Ÿ“– Description

Horse Race Simulator is a Java application that simulates a horse race using multithreading. It provides a graphical interface where users can input horse names and watch as the horses race across the screen. The application demonstrates the use of Swing for GUI, multithreading for concurrent execution, and basic graphics for visual representation.

## ๐Ÿ—๏ธ Project Structure

```
HorseRaceSimulator_JavaMultithreading/
โ”‚
โ”œโ”€โ”€ pom.xml
โ”‚
โ””โ”€โ”€ src/
โ”œโ”€โ”€ main/
โ”‚ โ””โ”€โ”€ java/
โ”‚ โ””โ”€โ”€ com/
โ”‚ โ””โ”€โ”€ mycompany/
โ”‚ โ””โ”€โ”€ horseracesimulator_javamultithreading/
โ”‚ โ”œโ”€โ”€ Horse.java
โ”‚ โ””โ”€โ”€ HorseRaceSimulator_JavaMultithreading.java
โ”‚
โ””โ”€โ”€ test/
โ””โ”€โ”€ java/
โ””โ”€โ”€ [Test files go here]
```

## โœจ Features

- ๐ŸŽจ User input for horse names
- ๐Ÿ‘๏ธ Visual representation of horses racing
- โฑ๏ธ Real-time progress updates
- ๐Ÿงต Multithreaded race simulation
- ๐Ÿ† Determination and announcement of the winner

## ๐Ÿš€ How to Run

1. Clone the repository
2. Navigate to the project directory
3. Run `mvn clean install` to build the project
4. Execute `java -jar target/HorseRaceSimulator_JavaMultithreading-1.0-SNAPSHOT.jar` to start the application

## ๐ŸŽฅ Demo

Here's a video demonstration of the Horse Race Simulator in action:

[Link to Video Demo](https://github.com/Ornella-Gigante/HorseRaceSimulator_Multithreading/blob/main/horses.mp4)

## ๐Ÿ› ๏ธ Requirements

- โ˜• Java 8 or higher
- ๐Ÿ”ง Maven

## ๐Ÿค Contributing

Contributions to the Horse Race Simulator project are welcome. Please feel free to submit a Pull Request.

## ๐Ÿ“„ License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.

Contributions to the Horse Race Simulator project are welcome!
Please feel free to submit a Pull Request :)

## Overview

![Horse Race Simulator Screenshot](https://github.com/Ornella-Gigante/HorseRaceSimulator_Multithreading/blob/main/horses_demo_screenshot.png)