https://github.com/adaiasmagdiel/hangman-in-clojure
This is a simple Clojure project where I developed a hangman game as part of my language study.
https://github.com/adaiasmagdiel/hangman-in-clojure
Last synced: 3 months ago
JSON representation
This is a simple Clojure project where I developed a hangman game as part of my language study.
- Host: GitHub
- URL: https://github.com/adaiasmagdiel/hangman-in-clojure
- Owner: AdaiasMagdiel
- License: mit
- Created: 2024-03-07T02:17:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-09T17:53:02.000Z (about 1 year ago)
- Last Synced: 2025-01-06T02:28:31.176Z (5 months ago)
- Language: Clojure
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Hangman Game in Clojure (WIP)
> This project is under construction.
This is a simple Clojure project where I developed a hangman game as part of my language study.
## Project Structure
The project has the following folder structure:
```
/
└── src
├── hangman.clj
├── words.txt
└── hangman
└── utils.clj
```The `hangman.clj` file contains the main source code of the game, while `words.txt` is a file storing the words used in the game. The `utils.clj`, in the `hangman` folder, contains some functions to manipulate the words list.
## How to Play
Make sure you have the Clojure environment installed on your machine.
You can run the game as follows:
```bash
$ clj -M -m hangman
```This will start the game, and you can begin playing!
## Features
The game includes the following features:
- Random selection of a word from the `words.txt` file.
- Prompting the user to guess a letter.
- Counting chances to guess the word.## Contributing
Contributions are welcome! Feel free to submit pull requests with improvements or fixes.
## License
The project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.