Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

Latest commit

 

History

History
56 lines (43 loc) · 1.32 KB

README.md

File metadata and controls

56 lines (43 loc) · 1.32 KB

gsquares

"Artifical life" project.

Libraries

  • SFML-2.5.1

How to build

g++ windows

g++ -o gsquares.exe -static-libstdc++ -Wall -L[SFML_lib_dir] -I[SFM_include_dir] src/main.cpp src/headers/bot.cpp src/headers/field.cpp -lsfml-graphics -lsfml-main -lsfml-window -lsfml-system -lwinmm -lgdi32 -lopenal32

gcc linux

gcc -xc++ -lstdc++ -L[SFML_lib_dir] -I[SFML_include_dir] src/main.cpp src/headers/bot.cpp src/headers/field.cpp -lsfml-graphicws -lsfml-window -lsfml-system

cmake

mkdir build

cd build

cmake ..

make all

dll

  • openal32.dll
  • sfml-graphics-2.dll
  • sfml-system-2.dll
  • sfml-window-2.dll

About project

Colors

Green - Alive and peaciful Red - Alive and aggressive Purple - Alive and infected Gray - DEAD Black - Nothing (Exists == false lmao)

Screenshots

Life in general

How i can slow down process?

Run programm with indicating sleep time in milliseconds ( ./gsquares [time_in_milliseconds] Example: ./gsquares 100)

Future updates

  • Support, fixes