Skip to content
Permalink
Browse files

Use width from properties

  • Loading branch information...
No3x committed Jul 3, 2019
1 parent eed8749 commit 673deae6156a31c8572f7145777bf6d0a3f42de4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/de/kintel/ki/AppConfiguration.java
@@ -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);
}

0 comments on commit 673deae

Please sign in to comment.
You can’t perform that action at this time.