Code Monkey home page Code Monkey logo

armsrace's Introduction

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

armsrace's People

Contributors

ebokai avatar weex avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.