weex / armsrace

Creating a predator-prey relationship between Generative Adversarial Agents.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

armsrace - Generative Adversarial Agents

(based on the engine from ebokai/particle_game_of_life)

For more see py/README.md

--

particle game of life

simulations of particles with asymmetric attraction/repulsion

python

new version (corresponding to this video: https://www.youtube.com/watch?v=P1H3MM56DDo)

dependencies:

  • moviepy (only for particle_gol_render.py)
  • colorsys

standard libraries (should be included with most python distributions):

  • numpy
  • matplotlib
  • time
  • os

particle_gol_delete_frames.py: delete all rendered frames from output folder

particle_gol_functions.py: simulation functions

particle_gol_main.py: real-time rendering using matplotlib animation

particle_gol_main_saveframes.py: off-line rendering to image files

particle_gol_params.py: simulation parameters - separate file to allow sharing of parameter values between ..main.py and ..main_saveframes.py

particle_gol_render.py: render frames to .mp4 (uses moviepy package)

particle_gol_sim.py: simulation - called by ..main.py and ..main_saveframes.py


old version (corresponding to this video: https://www.youtube.com/watch?v=-c5XaC5-DXg)

/old/pgol_old.py

C++

uses SDL2

  • branch: old

compile using g++ .\main.cpp -O3 -ffast-math -march=native -Wall -I .\SDL2_x86_64\include\SDL2\ -L .\SDL2_x86_64\lib -lSDL2main -lSDL2 -o main.exe

  • branch: main

compile using setup.bat or g++ .\main.cpp .\functions.cpp .\framework.cpp -O3 -ffast-math -march=native -I .\SDL2_x86_64\include\SDL2\ -L .\SDL2_x86_64\lib -lSDL2main -lSDL2 -o pgol_test_build.exe

About

Creating a predator-prey relationship between Generative Adversarial Agents.

License:GNU General Public License v3.0


Languages

Language:C 97.3%Language:Python 0.8%Language:C++ 0.6%Language:Objective-C 0.5%Language:M4 0.4%Language:CMake 0.4%Language:Shell 0.1%Language:Batchfile 0.0%