Walentalien / Gesser-Game

Implementation of unique idea using advanced technicks. Feel free to give feedback
1 stars 1 forks source link

Limit number of attempts #2

Closed kckeiks closed 3 weeks ago

kckeiks commented 1 month ago

It would make the game more challenging to limit the number of attempts per game.

Options

  1. (Simple) Use https://doc.rust-lang.org/book/ch12-01-accepting-command-line-arguments.html.
  2. (Fancy) Use clap.
Walentalien commented 3 weeks ago

The issue has now been addressed using the simple method as outlined in the official Rust documentation for accepting command-line arguments.

The game now allows the user to pass the maximum number of attempts as a command-line argument. If the player exceeds the number of allowed attempts, he loses the game, and the program exits.

We are incredibly sorry for the delay in implementing this feature and appreciate your patience. Thank you for bringing this up, and we hope the game is more challenging and enjoyable with this new functionality!