Skip to content

Console game where player decides for the settings first

Notifications You must be signed in to change notification settings

gzandiemer/PickinCoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Advanced Nim Game

A console-based version of the classic Nim strategy game, enhanced with customizable rules.

Game 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.

Features

  • Customizable settings for flexible gameplay
  • Computer opponent with basic logic
  • Console-based interface for quick interaction
  • Strategic gameplay based on classic game theory

Purpose

This project demonstrates:

  • Algorithm design
  • User input handling
  • Game logic implementation in Java

How to Play

  1. Clone the repository.
  2. Compile and run the Java file in your console.
  3. Define the game settings (coins, min, max).
  4. Take turns with the computer until the last coin is taken.

Example

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!

About

Console game where player decides for the settings first

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages