Skip to content

BR903/yahtzee

Repository files navigation

  About This Program

In addition to providing a simple game, this source code demonstrates
one approach to providing a basic user interface on top of
general-purpose I/O libraries. This program includes a graphical
interface via SDL, a terminal interface via ncurses, and a
dumb-terminal interface with no external dependencies. The basic game
logic is the same for all three interfaces, and the program can be
built with any or all of the above interfaces.


  Building and Installing

To build, simply run make.

This program depends on the ncurses library, the SDL library, and the
SDL_ttf library. You will need to have development versions of these
three libraries installed.

If you wish to omit the SDL interface and/or the ncurses interface,
you can edit the Makefile and comment out the indicated sections
before building.

The SDL interface requires two TrueType fonts. The Makefile attempts
to find these fonts by running fc-match(1). If fc-match is not
installed on your machine, you will need to edit the Makefile to
explicitly supply paths to appropriate font files.

There is no special installation process. If you wish to install the
binary to a shared location, just use cp(1).

Send bug reports to Brian Raiter at <breadbox@muppetlabs.com>.

URL: <http://www.muppetlabs.com/~breadbox/software/yahtzee.html>.


  License

This program is copyright (C) 2010 Brian Raiter.

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.

About

An example of a game that provides both graphical and textual UIs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages