Skip to content

Commit

Permalink
Use width from properties
Browse files Browse the repository at this point in the history
  • Loading branch information
No3x committed Jul 3, 2019
1 parent eed8749 commit 673deae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/kintel/ki/AppConfiguration.java
Expand Up @@ -49,8 +49,8 @@ public MoveMaker moveMaker(@Value("${guardEnabled}") final boolean guardEnabled,

@Bean
@Scope("singleton")
public TablePrinter tablePrinter() {
List<String> columns = IntStream.rangeClosed(0, 9).boxed().map(String::valueOf).collect(Collectors.toList());;
public TablePrinter tablePrinter(@Value("${board.width}") int boardWidth) {
List<String> columns = IntStream.rangeClosed(0, boardWidth).boxed().map(String::valueOf).collect(Collectors.toList());;
return new TablePrinter("", columns);
}

Expand Down

0 comments on commit 673deae

Please sign in to comment.