add pre-test(benchmark) funktion
This commit is contained in:
parent
056c905032
commit
e63c31a3e3
10
pomelovsd/ExitMaze/Core/Benchmark.py
Normal file
10
pomelovsd/ExitMaze/Core/Benchmark.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from MazeSolver.Solver import MazeSolver
|
||||
from .strat.
|
||||
import csv
|
||||
|
||||
def run_benchmark(maze, strategies, repeats = 5):
|
||||
rows = []
|
||||
|
||||
for name, strategies in strategies.items():
|
||||
|
||||
solver = MazeSolver(maze, strategy)
|
||||
Loading…
Reference in New Issue
Block a user