Simple clone for Fallout 3/NV terminal hacking in curses

Josh Bicking 243b0b9d5c removed unnecessary window recreation %!s(int64=8) %!d(string=hai) anos
bin 9931aafbf5 updated win64 binaries %!s(int64=8) %!d(string=hai) anos
.gitignore d42a1c802b removed recusive binary exclusion %!s(int64=8) %!d(string=hai) anos
FalloutTerminal.cfg 152ef5622d added key configuration %!s(int64=8) %!d(string=hai) anos
LICENSE.md fe9216e10c added getline source for Windows build. Updated license accordingly. %!s(int64=8) %!d(string=hai) anos
Makefile 0ecf447bda added debugging option in makefile %!s(int64=8) %!d(string=hai) anos
README.md 073df2e845 updated todo %!s(int64=8) %!d(string=hai) anos
defaultWords.txt 9923aaf90e added clean for windows. explained defaultWords.txt %!s(int64=8) %!d(string=hai) anos
getdelim.c fe9216e10c added getline source for Windows build. Updated license accordingly. %!s(int64=8) %!d(string=hai) anos
getdelim.h fe9216e10c added getline source for Windows build. Updated license accordingly. %!s(int64=8) %!d(string=hai) anos
getline.c fe9216e10c added getline source for Windows build. Updated license accordingly. %!s(int64=8) %!d(string=hai) anos
getline.h fe9216e10c added getline source for Windows build. Updated license accordingly. %!s(int64=8) %!d(string=hai) anos
intro.c 69f1c5a290 cleaned up comments. fixed an allocation bug in setWordArr %!s(int64=8) %!d(string=hai) anos
intro.h 1e079977b6 move everything to the top for easier access %!s(int64=8) %!d(string=hai) anos
main.c 84aefcaf6f implemented the file reading in other files %!s(int64=8) %!d(string=hai) anos
pass.c 243b0b9d5c removed unnecessary window recreation %!s(int64=8) %!d(string=hai) anos
pass.h 1e079977b6 move everything to the top for easier access %!s(int64=8) %!d(string=hai) anos
print.c 69f1c5a290 cleaned up comments. fixed an allocation bug in setWordArr %!s(int64=8) %!d(string=hai) anos
print.h 69f1c5a290 cleaned up comments. fixed an allocation bug in setWordArr %!s(int64=8) %!d(string=hai) anos
wordParse.c 152ef5622d added key configuration %!s(int64=8) %!d(string=hai) anos
wordParse.h 152ef5622d added key configuration %!s(int64=8) %!d(string=hai) anos

README.md

fallout-terminal-clone

What is fallout-terminal-clone?

fallout-terminal-clone is a recreation of the "terminal hacking" system
in Fallout 3 and Fallout: New Vegas developed with curses. It runs directly
in your terminal or command prompt. I made this as a fun and interesting
way to explore C.

Instructions

Use the arrow keys (by default) to move, and ENTER to choose your selected letter. Ctrl-C to quit.

Building

WINDOWS

    Requirements:
        MinGW installed with the following packages:
        - mingw32-gcc
        - mingw32-pdcurses (dev and dll)

    Once the above dependencies are satisfied, simply open 
    a command prompt in the source directory and run:
        make

    If you get an error about gcc not being found, you most
    likely didn't add MinGW tools to your path. Either do
    that, or change the line:
CC = gcc
    to read:
CC = C:\MinGW\bin
    (assuming you installed MinGW in that location)

LINUX

    Requirements:
        - gcc
        - ncurses

    Once the above dependencies are satisfied, simply open 
    a terminal in the source directory and run:
        make

OSX

    Requirements:
        Xcode Tools (just run xcode-select --install)

    Once this is finished, simply open 
    a terminal in the source directory and run:
        make

TODO list:

Try spawning processes with exec, rather than system
Screen centering
Have a typing animation for the guesses, as well as a list of preivous guesses
Possible mouse support?

Bugs:

Fallout 3 doesn't seem to play nice with the launching. But I haven't
tested this much. You may just be better off putting this program in a
batch file.

The OSX binary may segfault with error 11. This hasn't happened with the
couple macs I've tested it on, but my friend's mac does it constantly. It
may have something to do with having development xcode tools installed.    

Thanks to:

/u/aftli_work for suggesting macros (before I knew what they were)

I do not own the idea for this game, nor do I claim any ownership of Fallout 3 or Fallout: New Vegas. Those copyrights are the property of Bethesda Softworks.