Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/xotlr/cs-dicegame

OddEvenDiceGame is a very simple, interactive Java-based dice game where players bet points on the outcome of rolling two dice.
https://github.com/xotlr/cs-dicegame

dice java javafx javafx-gui odd-even

Last synced: about 19 hours ago
JSON representation

OddEvenDiceGame is a very simple, interactive Java-based dice game where players bet points on the outcome of rolling two dice.

Awesome Lists containing this project

README

        

# OddEvenDiceGame

OddEvenDiceGame is a simple, interactive Java-based dice game where players bet points on the outcome of rolling two dice. The game is designed to test the player's luck and decision-making skills in a fun and engaging way.

## Game Rules

- The player starts with 100 cash points.
- The player places a bet from their available points before each round.
- Two six-sided dice are rolled.
- If the sum of the dice is an odd number, the player wins double their bet.
- If the sum is an even number, the player loses their bet.
- The game continues until the player decides to stop or runs out of cash points.

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

### Prerequisites

To run this game, you will need:

- Java Development Kit (JDK) installed on your machine.
- A Java IDE (Integrated Development Environment) such as IntelliJ IDEA, Eclipse, or NetBeans, though not necessary, can make running and editing the code easier.

### Installing

1. Clone the repository or download the ZIP file of the project.
2. If using an IDE:
- Import the project into your IDE.
- Ensure the JDK is correctly setup in your project settings.
3. Locate the `DiceGame.java` file within the project directory.

### Running the Game

- If using an IDE, run the `DiceGame.java` file directly through the IDE.
- Alternatively, open a terminal or command prompt, navigate to the project directory, and run the following command:

```bash
java DiceGame.java