This is the first game I've ever written. Since I wrote it in C89 I got it portable enough to compile with Macintosh Programmer's Workshop. Let me know if you encounter bugs/fun with this!
https://macintoshgarden.org/games/21c21C by Alex Free
1.0 Release - September 28th 2020
==About==
A portable and open source command line game of Blackjack/21 written in Ansi C/C89.
==Release - Compatibility==
- 21c_1.0_win32 - Windows 95-Windows 10 (64 & 32-bit)
- 21c_1.0_classic_mac_os - 68k/PPC universal SIOW app for Mac OS 8+
- 21c_1.0_mac_os_x - PPC, x86, x86_64 universal executable for Mac OS X 10.3-Mac OS X 10.15 (10.16/arm with rosetta
unknown)
==Features==
- 'Infinite' deck to draw from
- Infinite splitting
- Dealer hits until 16
- Early surrender (late surrender turned out to not be fun)
- Bet and save your balance and pick up where you left off later
- BSD 3-Clause License, Ansi/C89 100% compilant
- Saving:
When you save, a file named 'save.txt' will be generated in the current directory. If 'save.txt'
is in the current directory when executing '21c' you will be prompted to load it if so desired.
==License==
3-Clause BSD License, see 'license.txt'
==SOURCE INFO==
Tested To Compile With:
- Macintosh Programmer's Workshop 3.0 GM (MrC - PowerPC, SC - 68k) (Classic Mac OS)
- Xcode 3.0/1.5 (GCC 4.04) (Mac OS X)
- DevCPP 4.99.5 (GCC 3.4.2) (MiniGW/Windows 95 OSR 2.5+)
This should essentially compile on any OS with a C89 compilant compiler.
Each folder contains the same source file '21c.c' in a different EOL format.
- eol_cr contains the classic Mac OS EOL format.
- eol_crlf contains the Windows EOL format.
- eol_lf contains the unix EOL format.
Universal Mac OS X/Mac OS 11 compile:
gcc -mmacosx-version-min=10.3 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch ppc64 -arch i386 -arch x86_64 -o 21c 21c.c
Compatibility
Architecture: 68k PPC x86 (Intel:Mac) x86 (Windows)
Mac OS 8+
Mac OS X 10.3.9+
Windows 95 OSR 2.5+