Exemple #1
0
def get_rectangle_input():
    """
    Obtains pre-defined testing base astar that is assured not to fail
    """
    args = g08.get_args()
    args.a_estrella = True
    args.vision = 2
    args.zanahorias = 2
    args.tablero_inicial = "5x4.txt"
    result = g08.get_result(algorithm="AStar", args=args)
    return result
Exemple #2
0
def get_25_by_25_input():
    """
    Obtains pre-defined testing base astar that is assured not to fail
    """
    args = g08.get_args()
    args.a_estrella = True
    args.vision = 10
    args.zanahorias = 10
    args.tablero_inicial = "_generated_inputs_/25x25(50).txt"
    result = g08.get_result(algorithm="AStar", args=args)
    return result
Exemple #3
0
def get_two_carrot_input():
    """
    Obtains pre-defined testing base genetic that is assured not to fail
    """
    args = g08.get_args()
    args.genetico = True
    args.derecha = True
    args.individuos = 3
    args.generaciones = 100
    args.vision = 4
    args.zanahorias = 2
    args.tablero_inicial = "_generated_inputs_/4x4(2).txt"
    result = g08.get_result(algorithm="Genetic", args=args)
    return result