diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-03-27 15:42:52 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-03-27 15:42:52 +0200 |
commit | 446f7a2761b3f15e52f396ec337799d788efac97 (patch) | |
tree | 5ac72ae3a92470eb6b2f875506438385d3f7be4c /os1eindopdracht/uhm.1 | |
parent | 1ea23e3b923ea89b97a51edc75e1a8d13264e758 (diff) |
add manpage and check requirements
Diffstat (limited to 'os1eindopdracht/uhm.1')
-rw-r--r-- | os1eindopdracht/uhm.1 | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/os1eindopdracht/uhm.1 b/os1eindopdracht/uhm.1 new file mode 100644 index 0000000..ab15eff --- /dev/null +++ b/os1eindopdracht/uhm.1 @@ -0,0 +1,54 @@ +\# vim: ft=groff +.TH uhm 1 +.SH NAME +uhm \- ultra hangman +.SH SYNPOSIS +uhm [-h] [-w \fIword\fP] [-d \fIfile\fP] +.SH DESCRIPTION +Play a game of hangman, optionally using a custom dictionary or custom word. +The terminal screen will always get cleared before playing. + +The player can input a single letter per turn. The player's turn is indicated +by a caret '> ' prompt. When the word contains the input letter, the player +keeps the same amount of turns. When the word does not contain the input +letter, the player loses a turn. The game exits once all turns are depleted, or +the player has guessed the word. +.SH OPTIONS +.TP +\fB-h\fP +show help +.TP +\fB-w \fIword\fP +set custom word to \fIword\fP +.TP +\fB-d \fIfile\fP +load random word from dictionary \fIfile\fP. Any words containing spaces, +apostrophes, or words longer than 12 characters will get filtered. \fIfile\fP +must be a regular file. +.SH AUTHOR +Written by Loek Le Blansch. +.SH COPYRIGHT +MIT License + +Copyright (c) 2023 lonkaars + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +.SH NOTES +The main game logic is programmed in \fBawk\fR(1), so this implementation also +supports non-ascii words. |