Skip to content

C implementation for CP/M of the classic "hangman" included in "bsdgames" popular package for UNIX

License

Notifications You must be signed in to change notification settings

sblendorio/hangman-cpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman - CP/M version

This is a C implementation for CP/M of the classic "hangman" included in "bsdgames" popular package for UNIX.

History

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.

Suported platforms

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)

Using compilers

CP/M-80, HI-TECH C

c -lf hangman.c xterm.c

POSIX, GCC

gcc hangman.c xterm.c

Amiga, SAS/C

sc math=standard hangman.c xterm.c link to hangman

Contents of package

  • source - Source code in C
    • xterm.h - XTerm Library: header file (for terminal portability)
    • xterm.c - XTerm Library: implementation module
    • hangman.c - Main module (run this)
    • words.txt - Sample set of words used in the game
  • binary - Compiled .COM executable files for CP/M-80
  • 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)

Credits

Thanks to Gabriele Asbesto Zaverio for the idea.

Screenshots on Commodore 128

Terminal choosing

C128 version

Game screen

C128 version

Screenshots on Amiga

On Amiga OS 1.3

OS13

On Amiga OS 3.1

OS13

Screenshot on CP/M emulator on Mac OS X

OSX

About

C implementation for CP/M of the classic "hangman" included in "bsdgames" popular package for UNIX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages