This is a C implementation for CP/M of the classic "hangman" included in "bsdgames" popular package for UNIX.
I just wanted to port to C language my library XTerm for Modula-2, and I needed something to do with it. During a funny Facebook thread a friend of mine showed his version of "hangman" using sicilian words, so I decided that "hangman" would be the first project using the C port of XTerm.
Although it's basically a CP/M project, the C language is portabile, so I wrote source in order to make it compatible with following platforms:
- CP/M-80 (with HI-TECH C Compiler 3.09)
- POSIX (with GCC)
- Amiga (with SAS/C Compiler 6.58)
c -lf hangman.c xterm.c
gcc hangman.c xterm.c
sc math=standard hangman.c xterm.c link to hangman
- source - Source code in C
- binary - Compiled .COM executable files for CP/M-80
- hangman.com - Binary executable file for CP/M-80
- hangman-for-amiga - Binary executable file for Amiga computers
- words.txt - Sample set of words used in the game
- dists - Collection of CP/M (and Amiga) bootable disk images
- hangman.d71 - Includes C128 CP/M boot code, all sources and binaries, some utilities
- hangman.d64 - Includes C128 CP/M boot code, all sources and binaries
- hangman.adf - Includes Amiga boot code, all sources and binaries
- hangman.mfloppy - Includes Memotech MTX CP/M boot code and binaries (Memotech type 07 disk image)
- hangman-msx.dsk - Includes MSX-DOS boot code and binaries (MSX-DOS disk image)
- hangman-cpc.dsk - Includes CP/M for Amstrad CPC6128 boot code and binaries (CPC CP/M disk image)
Thanks to Gabriele Asbesto Zaverio for the idea.