A console-based version of the classic Nim strategy game, enhanced with customizable rules.
- Start with n coins on the table.
- Players take turns picking between a minimum and maximum number of coins.
- Whoever picks the last coin wins.
- The player sets:
- Total number of coins
- Minimum number of coins per turn
- Maximum number of coins per turn
- Player competes against the computer.
- Customizable settings for flexible gameplay
- Computer opponent with basic logic
- Console-based interface for quick interaction
- Strategic gameplay based on classic game theory
This project demonstrates:
- Algorithm design
- User input handling
- Game logic implementation in Java
- Clone the repository.
- Compile and run the Java file in your console.
- Define the game settings (coins, min, max).
- Take turns with the computer until the last coin is taken.
Number of coins on the table: 15 Minimum coins per turn: 1 Maximum coins per turn: 3
Your move: Pick 2 Computer picks 3 ... You win!