DRPanther / Crazy_Eights_Slots

Crazy Eights Slot Machine is an Ansi BBS door game.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crazy Eights Slot Machine
(C)2020 Dan Richter(RCS)
Special thanks to HSM(Gary) for contributing ANSI upgrades!

Codacy Badge Build Status Build status

Dan Richter
aka Black Panther
dan@castlerockbbs.com
telnet://bbs.castlerockbbs.com
http://www.castlerockbbs.com
https://github.com/DRPanther

-=-=-=-=-=-=-=-=-=-=-=-=-

Crazy Eights Slot Machine is a simple slot machine game that I wrote. It is a basic style slot machine, with some components that I decided to add on, such as a top player report, adding commas to the numbers to make them more readable, etc. In all honesty, I started working on this, to take my mind of off other projects that I should be working on. :)

-=-=-=-=-=-=-=-=-=-=-=-=-

Installation is really easy. In your script/batch file, copy the dorinfo1.def file into the directory that you installed this program to. It will read the information from the dropfile.

For example:

#!/bin/bash
cd ~/doors/slots
cp $1 ~/doors/slots/dorinfo1.def
./slotmachine -D $1 -N $2
rm dorinfo1.def

That's it! If you would like a dos/windows example:

c:
cd \doors\slots
copy %1 c:\doors\slots\dorinfo1.def
slotmachine -D %1 -N %2
del dorinfo1.def

Simple! :)

Also, In Mystic, or whichever BBS program you use, when you call the door, make sure you use the command of:

./slots.sh %PDORINFO1.DEF %3 //this passes the node number to the script file.

Or

slots.bat %PDORINFO1.DEF %3

The %P in Mystic will expand to the nodes path where the dropfile DORINFO1.DEF is located. The %3 passes the node number.

-=-=-=-=-=-=-=-=-=-=-=-=-

File included:

slotmachine (linux) or slotmachine.exe (Windows)
install.txt - This file. :)
slots.ans
slotin.ans
file_id.diz

Files created by the program:

player.dat - Players info
slotplyr.idx - Players Index file
slotplyr.txt - Top Players score file

Source code:

main.c - Main program code
numbers.h - Header file
OpenDoor.h - OpenDoors header file
makefile - Used to compile the source code
ODoors62.dll - Windows Library file libODoors.a - Linux library file

-=-=-=-=-=-=-=-=-=-=-=-=-

If you wish to copile your own version of this, feel free to use the makefile included. It uses gcc, and works fine here on both Debian and Manjaro systems.

Extract the source code into it's own directory, and just run 'make'. You can also run 'make clean', and it will remove all the object files and binaries from the directory.

Options available for 'make'

  • make all
  • make slotmachine
  • make clean
  • make check-syntax
  • make distribution
  • make help

-=-=-=-=-=-=-=-=-=-=-=-=-

This program is being releases as open source, using the GPL2.0 license. Feel free to do what you will with it. The only thing I ask, is if you do make changes to it, please let me know by sending me a copy of the modified source, or push an commit to the repo on github. Call it my curiosity to see what others think should be changed to added to any upcoming releases.

About

Crazy Eights Slot Machine is an Ansi BBS door game.

License:GNU General Public License v2.0


Languages

Language:C 98.6%Language:Makefile 1.4%