MyGit

johnBuffer/AntSimulator

Fork: 280 Star: 2246 (更新于 2024-11-04 09:50:15)

license: MIT

Language: C++ .

Simple Ants simulator

最后发布版本: v4.2 ( 2022-03-04 01:55:01)

GitHub网址

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

最近版本更新:(数据更新于 2024-09-15 10:44:09)

2022-03-04 01:55:01 v4.2

2021-12-24 23:21:53 v4.1

2021-12-10 06:13:07 v4.0

2021-08-10 12:38:37 v3.1

2021-08-09 22:46:05 v3.0

2021-04-06 17:19:38 v2.1

2021-04-02 16:40:00 v1.2

2021-01-02 06:04:02 v1.1

2020-12-31 21:13:16 v1.0

主题(topics):

2d, cpp, realtime, sfml, simulation

johnBuffer/AntSimulator同语言 C++最近更新仓库

2024-11-25 02:55:44 PCSX2/pcsx2

2024-11-23 23:18:58 matanki-saito/EU4dll

2024-11-22 19:14:23 ClickHouse/ClickHouse

2024-11-22 19:09:45 manticoresoftware/manticoresearch

2024-11-20 09:02:24 dail8859/NotepadNext

2024-11-20 04:28:15 microsoft/terminal