Only Makefiles/Makefile.linux-g++, Makefiles/Makefile.linux.libtcod-g++ Makefiles/Makefile.linux-clang Makefiles/Makefile.msys Makefiles/Makefile.msys-libtcod (32 bit ) Makefiles/Makefile.freebsd ( gcc9 ) Makefiles/Makefile.freebsd.libtcod-g++ ( gcc9 ) Makefiles/Makefile.openbsd will build currently, but you can take a look at it and make other platforms compile
To run a makefile (Debian 9 example):
make -f Makefiles/Makefile.linux-g++
To run a makefile (Openbsd example):
gmake -f Makefiles/Makefile.openbsd
For windows you will need msys2 or visual studio 2017. To run the compiled program from the msys2 and visual studio. You will have to use cmd. Msys2 terminal can't run the game properly. In msys2 launching from shortcut mingw64.exe in the msys2 install directory:
git
ncurses
openssl-devel (needed, because if you want to choose a seed 'example from cmd: .\playerandai1.exe "This is better now"')
mingw-w64-x86_64-toolchain
base-devel
pkg-config
For windows in msys2 you can install them using:
pacman -S ncurses-devel mingw-w64-x86_64-ncurses openssl-devel mingw-w64-x86_64-toolchain base-devel pkg-config
For Ubuntu you will need:
git
libncurses-dev
libssl-dev (needed, because if you want to choose a seed 'example from bash: ./playerandai1 "This is better now"')
build-essential
pkg-config
For Ubuntu you can install them using:
sudo apt-get install git libncurses-dev libssl-dev build-essential pkg-config
To compile with visual studio 2019 you will need pdcurses and openssl development includes and libs. You can get openssl from http://slproweb.com/products/Win32OpenSSL.html The preprocessor need the options _CRT_SECURE_NO_WARNINGS;INITWINDOWSNOW;INITNCURSESNOW;FREEBSD;INITWINDOWSNCURSES;INITOPENSSL;WINDOWSFILESEXISTS; and keep the options there already for the preprocessor.
To enable 2 player support (you can replace none with a different word):
Linux:
./playerandai1 "none" 1
Windows:
.\playerandai1.exe "none" 1