Fixed: various
This commit is contained in:
@@ -158,14 +158,13 @@ public class TUI implements IView {
|
||||
public void renderTotems() {
|
||||
clearTerminal();
|
||||
var table = new AsciiTable(BorderStyle.ROUNDED, model.availableTotems.size());
|
||||
List<String> lines = model.availableTotems.stream().map(Totems::toString).toList();
|
||||
int i=0;
|
||||
for(String line : lines)
|
||||
List<String> lines =new ArrayList<>();
|
||||
for(int i=0;i<model.availableTotems.size();i++)
|
||||
{
|
||||
line = (i++) +". "+ line;
|
||||
lines.add(i+"."+model.availableTotems.get(i));
|
||||
}
|
||||
table.addRow(lines);
|
||||
System.out.println(model.currentState+"\nTOTEMS AVAILABLE:\n"+table.build());
|
||||
System.out.println(model.currentState+"\nTOTEMS AVAILABLE:\n"+table.build()+"\nPress 9 and then write the position");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -228,7 +227,6 @@ public class TUI implements IView {
|
||||
table.addRow(List.of("6-PickOptionalBuilding(pos)", ""));
|
||||
table.addRow(List.of("7-NoOptional", ""));
|
||||
table.addRow(List.of("8-SkipTurn", ""));
|
||||
table.addRow(List.of("9-TotemChoice(pos)", ""));
|
||||
return table.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user