• Stars
    star
    2,087
  • Rank 21,348 (Top 0.5 %)
  • Language
    C++
  • License
    MIT License
  • Created about 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple Ants simulator

AntSimulator

Very simple ants simulator.

Installation

Prerequisites

In order to compile this project you will need to:

  • have SFML installed on your system. If you don't know how to do it see this link.
  • have CMake installed

Compilation

Detailed explanation here

On Linux with install.sh

  • Go in the repo folder

cd the/repo/location

  • Execute install.sh script

./install.sh

On Ubuntu from Docker
  • Install Docker (see this)
  • Execute install_from_docker.sh script
docker build -t myimages/ant-simulator:latest .
docker create -it --name dummy myimages/ant-simulator:latest bash
docker cp dummy:/AntSimulator/build/AntSimulator .
rm -rf build/
mkdir build/
mv AntSimulator build/
cp -r res/ build/
docker rm -f dummy

Executable files will be located in the build folder.

On Windows with CMake GUI and Visual Studio

  • Install the right SFML version or compile it (see this)
  • Run CMake
  • Select the repo location

Cmake 1

  • Click on Configure, if you have installed the x64 version of SFML, in the pop up window select x64 in the Optionnal platform for generator drop down

Cmake 2

  • Click on Finish
  • Click on Generate

Cmake 3

  • You can now open the generated project and build it.

Commands

Command Action
P Pause/Unpause the simulation
M Toggle markers drawing
A Toggle ants drawing
S Toggle max speed mode
W Toggle Wall mode
E Toggle Wall erase mode
Right click Add food
Left click Move view
Wheel Zoom

More Repositories

1

NoCol

Trajectories finder
C++
1,376
star
2

ClothSimulation

Basic cloth simulation using Verlet integration
C++
670
star
3

AutoDrone

C++
164
star
4

UnitedEngine

Lightweight physic engine designed for massive and fast simulations
C++
138
star
5

ZombieV

Top down Zombie shooter game in C++ using SFML as graphics library
C++
132
star
6

NovaBug

C++
129
star
7

VerletSFML-Multithread

C++
99
star
8

VerletSFML

C++
85
star
9

JuliaRendering

C++
71
star
10

Tree2D

C++
44
star
11

GrassSimulator

Simulating Grass
C++
35
star
12

Foucloids

Generates Cycloids that sum up to any 2D shape using Fourier transform
C++
34
star
13

AutoFlappy

Genetic Algorithm trains NN to play Flappy like game.
C++
32
star
14

AutoRocket

C++
32
star
15

Smoke

Simple 2D smoke system
C++
28
star
16

CpuVoxelRaycaster

C++
25
star
17

Vue-MongoQueryBuilder

A visual MongoDB query builder using Vuejs as framework with bootstrap for CSS
Vue
24
star
18

Swarm

Multithreading library
C++
20
star
19

FastTyper

Typing Test software with record / replay features
C++
12
star
20

cpp-opencl-wrapper

Cpp wrapper to ease the use of OpenCL
C++
9
star
21

SFML-EventManager

SFML callbacks based events manager
C++
7
star
22

VoxelCaster

Simple realtime voxel ray caster in C++ using GLSL compute shaders
C
7
star
23

Advent-Of-Code

Python
6
star
24

ConstantIndexVector

Fast C++ constant index vector
C++
5
star
25

AdventOfCode-2021

Python
5
star
26

ZTyper2

C++
5
star
27

DynamicBlur

Blur header only lib for SFML
C++
5
star
28

FluidSurface

C++
4
star
29

RandomForest

C++
4
star
30

MicroXML

Lightweight (but strong 🐜) C++ XML parsing librairy
C++
4
star
31

AutoDoc

Android application for periodic medical reminders
Kotlin
3
star
32

Transition

Generic interpolater
C++
3
star
33

DataStructures

C++
3
star
34

EzBench

Easy to use performance comparator for C++ (C++11 required)
C++
3
star
35

MagicLink

Synchronizes directories across differents locations
C++
3
star
36

CustomRenderer

SFML Render helper allowing to define custom rendering pipelines
C++
2
star
37

FluidSnake

C++
2
star
38

QuadTreeRaycaster

C++
2
star
39

FastVersatileContainer

C++
2
star
40

ZTyper

Little dactylo-shooter using SFML
C++
2
star
41

BackpropagationFFNN

C++
2
star
42

EzTask

C++
1
star
43

EzAnimator

Animation creator for EzEngine
C++
1
star
44

adventofcode-2020

Python
1
star
45

words-cracker

C++
1
star
46

GenArena

C++
1
star
47

EzEngine

C++
1
star
48

GLSL_Raytracer

Realtime raytracer using GLSL fragment shader
GLSL
1
star
49

RaytracedPlanet

Draw a 3D planet using GLSL raytracing
C++
1
star