Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/echosingh/number_guess
A Simple Console Game
https://github.com/echosingh/number_guess
game-using-fsharp number-guessing-game
Last synced: 2 days ago
JSON representation
A Simple Console Game
- Host: GitHub
- URL: https://github.com/echosingh/number_guess
- Owner: EchoSingh
- License: mit
- Created: 2024-05-25T08:17:48.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-07-24T03:55:31.000Z (4 months ago)
- Last Synced: 2024-07-25T05:33:20.017Z (4 months ago)
- Topics: game-using-fsharp, number-guessing-game
- Language: F#
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# F# Number Guessing Game
This is a simple console-based number guessing game implemented in F#. It allows players to guess a randomly generated number within a specified range.
![Console](https://github.com/EchoSingh/Number_Guess/blob/master/Screenshot%202024-05-25%20133913.png)
## Getting StartedTo run the game, you'll need the .NET SDK installed on your machine.
1. Clone this repository to your local machine:
```bash
git clone https://github.com/EchoSingh/Number_Guess.git
```
2. Navigate to the project directory:
```bash
cd Number_Guess
```
3. Compile and run the game:
```bash
dotnet run
```
## Gameplay
The game will prompt you to guess the number between 1 and 100. You have a limited number of attempts to guess the correct number. After each guess, the game will inform you if your guess was too high, too low, or correct.## Customization
You can customize the number of attempts allowed by adjusting the attempts variable in the main function of Program.fs.## License
This project is licensed under the MIT License - see the LICENSE file for details.