Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/xotlr/cs-dicegame
- Owner: xotlr
- Created: 2024-02-27T09:46:35.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-27T15:12:16.000Z (9 months ago)
- Last Synced: 2024-10-12T18:41:00.509Z (about 1 month ago)
- Topics: dice, java, javafx, javafx-gui, odd-even
- Language: Java
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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