A minimal, single-file Tic-Tac-Toe game in Nim using raylib. It demonstrates a multi-threaded setup with a custom FFI wrapper for the shared library.
- Nimony compiler
- A C compiler and raylib development libraries. See the official raylib wiki for platform-specific setup instructions.
The game requires the raylib shared library (.so, .dll, or .dylib).
The easiest way to run the game is to place the raylib shared library file next to the executable.
Linux (from source):
git clone --depth 1 https://github.com/raysan5/raylib.git raylib
cd raylib/src/
make PLATFORM=PLATFORM_DESKTOP GLFW_LINUX_ENABLE_WAYLAND=TRUE GLFW_LINUX_ENABLE_X11=FALSE RAYLIB_LIBTYPE=SHARED
cp libraylib.so* ../../
cd ../..
nimony c -r tictactoe.nimOther Platforms: Download the correct shared library for your OS from the raylib releases and run nim c -r tictactoe.nim.




