forked from mercere99/MABE2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMABE.cpp
37 lines (29 loc) · 1.02 KB
/
MABE.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* @note This file is part of MABE, https://github.com/mercere99/MABE2
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2019-2020.
*
* @file MABE.cpp
* @brief Dynamic MABE executable that can be fully configured from a file.
*/
#include <iostream>
// Empirical tools
#include "emp/bits/BitVector.hpp"
#include "emp/config/ArgManager.hpp"
#include "emp/math/Random.hpp"
// Framework
#include "../source/core/MABE.hpp"
#include "../source/core/EmptyOrganism.hpp"
// Include the full set of available modules.
#include "../source/modules.hpp"
int main(int argc, char* argv[])
{
// Build the MABE controller, passing in the command-line arguments.
mabe::MABE control(argc, argv);
control.SetupEmpty<mabe::EmptyOrganismManager>();
// [ If you build your own version of this file, add required modules here... ]
// Setup all of the modules; read in the config file.
if (control.Setup() == false) return 0;
// Start the run!
control.Update(1000000);
}