@RamilH/ignore also
C++

Critter programmed in c++

Files
  • main.cpp
  • Ant.cpp
  • Ant.hpp
  • Critter.cpp
  • Critter.hpp
  • DoodleBug.cpp
  • DoodleBug.hpp
  • Environment.cpp
  • Environment.hpp
  • Vector2.cpp
  • Vector2.hpp
  • makefile
main.cpp
#include "Environment.hpp"
#include <iostream>

using namespace std;

int main() {
    
    //Singleton   * Only one instance of the Environment  
    Environment* environment = Environment::getInstance(); // Ok
 
    environment -> CleanGrid();
    environment -> Populate(100, 5);
    environment -> Simulate();
}
gcc version 4.6.3