MicroSociety is an object-oriented simulation project that models a dynamic society with AI-driven behaviors, events, and interactions. The project uses AI to create a lively, ever-changing environment.
MicroSociety offers two setup options:
- With TensorFlow (Docker-based): Enables advanced AI capabilities using TensorFlow.
- Without TensorFlow (Local build): Provides a simpler setup without TensorFlow dependencies.
-
Build the Docker image (TensorFlow-enabled):
docker build -t micro-society .
-
Run the Docker container:
docker run -it micro-society
-
Rename
CMakeLists_without_tf.txt
toCMakeLists.txt
in your local folder. -
Create a build directory and compile:
mkdir build && cd build cmake .. make
-
Run the executable:
./MicroSociety
-
Rename
CMakeLists_without_tf.txt
toCMakeLists.txt
in your local folder. -
Open the Developer Command Prompt for your compiler (e.g., MSVC).
-
Create a build directory:
mkdir build && cd build
-
Generate the project:
cmake -G "NMake Makefiles" ..
-
Build the project:
nmake
-
Run the executable:
MicroSociety.exe
If you want to check memory leaks or performance profiling, use Valgrind:
valgrind --leak-check=full --track-origins=yes ./MicroSociety
valgrind --tool=callgrind ./MicroSociety
kcachegrind callgrind.out.<pid>