gcc snake.c -lpthread
-
snake_windows.cfile is the code using windowsapis and can be built directly -
snake.cplease use POSIX Threads for Windows
please use MSVS or GNU GCC (e.g. MinGW or MinGW64(without win32pthreads)) supported for pthreads4w support
gcc snake.c -I${The Dir of pthreads4w}
replace${The Dir of pthreads4w}according to your own setting
snake_windows_opt.cis the version avoiding refresh all output frequently, which lead to splash screen