Slotz

August 1, 2006

Author: jart — Originally Posted 1459 Days Ago Article Tags « games »
[Screenshot]

This is a very simple slot machine type program written in C with GTK+ 2.x with Glade-2 on Fedora Core 4. It is meant to serve more as an example and/or learning experience than it is intended to be "fun." I coded it because I decided one day that I wanted to learn a little about writing GUI apps on Linux.

Download

[zip] slotz-0.1.tar.gz (130KB)

Payout

Combo Payout
1 Seven x1
2 Sevens x2
3 of a kind x22
3 Sevens x77

Installing

If you have a sane GNU development environment configured (Install the development tools bundled with your distro, on Windows you'll need something like Cygwin) you should be able to type the following commands and have it "just work".

tar -xzvf slotz-0.1.tar.gz
cd slotz-0.1
./configure
make
make install

Running

Just type in the command idiot.

slotz

How it was written

Writing this was a piece of cake. I designed the GUI in Glade. In the source I programmed callbacks.c, added some global vars and random seeding in main.c, wrote stuff.h to have extern definitions for the global vars, and included stuff.h in callbacks.c.

Legal

Slotz
Copyright (c) 2006 Lobstertech, Inc.
Keep it Open Source Pigs

The programs found on this page are free software and may be used, distributed, and modified under the terms of the GNU General Public License version 2.0.

These patches are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Comments

No comments found.

Post Comment