mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final2.git
synced 2024-11-08 18:00:37 +00:00
Correct list-buildings order
This commit is contained in:
parent
5cec0064f7
commit
f240ecf5f0
@ -64,6 +64,7 @@ tiger
|
||||
tiger
|
||||
thunderstorm
|
||||
list-resources
|
||||
list-buildings
|
||||
draw
|
||||
draw
|
||||
draw
|
||||
@ -116,4 +117,6 @@ list-resources
|
||||
build?
|
||||
build steamboat
|
||||
build fireplace
|
||||
build axe
|
||||
list-buildings
|
||||
build steamboat
|
||||
|
@ -1,5 +1,6 @@
|
||||
OK
|
||||
EMPTY
|
||||
EMPTY
|
||||
wood
|
||||
wood
|
||||
wood
|
||||
@ -107,3 +108,6 @@ steamboat
|
||||
Error, need fireplace to build
|
||||
OK
|
||||
OK
|
||||
axe
|
||||
fireplace
|
||||
OK
|
||||
|
@ -16,7 +16,9 @@ public class ListBuildings extends Command {
|
||||
if (items.isEmpty()) {
|
||||
Terminal.printLine("EMPTY");
|
||||
} else {
|
||||
items.forEach(Terminal::printLine);
|
||||
for (int i = items.size() - 1; i >= 0; i--) {
|
||||
Terminal.printLine(items.get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user