aboutsummaryrefslogtreecommitdiff
path: root/imagocli.py
blob: 150587e9beb8fa5cb5de0dfb72b98e10d821e022 (plain)
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
#!/usr/bin/python

"""Run the Imago engine."""

import sys

from imago.engine.imagoIO import ImagoIO
from imago.engine.decisionAlgorithmFactory import DecisionAlgorithms

if __name__ == "__main__":

    decisionAlgorithm = None
    if len(sys.argv) >= 3:
        if sys.argv[1] == "-e":
            if sys.argv[2] == "montecarlo":
                decisionAlgorithm = DecisionAlgorithms.MONTECARLO
            if sys.argv[2] == "keras":
                decisionAlgorithm = DecisionAlgorithms.KERAS

    if decisionAlgorithm is None:
        io = ImagoIO()
    else:
        io = ImagoIO(decisionAlgorithm)

    io.start()