Move list feature #26

Merged
fassband merged 4 commits from MoveListFeature into Game 2022-03-18 20:54:27 +01:00
1 changed files with 0 additions and 1 deletions
Showing only changes of commit 833b122d2b - Show all commits

View File

@ -59,7 +59,6 @@ public class Game implements GameSpecification {
break; break;
case 3: case 3:
String path = ".\\moves\\" + selectedTrack.getName().split("\\.")[0] + "-car-" + track.getCar(i).getID() + ".txt"; String path = ".\\moves\\" + selectedTrack.getName().split("\\.")[0] + "-car-" + track.getCar(i).getID() + ".txt";
System.out.println(path);
try { try {
MoveStrategy moveStrategy = new MoveListStrategy(path); MoveStrategy moveStrategy = new MoveListStrategy(path);
track.getCar(i).setMoveStrategy(moveStrategy); track.getCar(i).setMoveStrategy(moveStrategy);