Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e51718b04 | ||
|
|
aa141a8f22 | ||
|
|
2e69b2e4cf | ||
|
|
531732c524 | ||
|
|
002d8a0804 | ||
|
|
8222f5e0b3 | ||
|
|
b8e2e8e2fd |
+11
-5
@@ -1,11 +1,17 @@
|
|||||||
FROM gcc:latest
|
FROM gcc:latest AS build
|
||||||
|
|
||||||
RUN g++ src/*.cpp -o Bowling
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY include/* /app/include/
|
||||||
|
COPY src/* /app/src/
|
||||||
|
|
||||||
|
RUN g++ src/*.cpp -o Bowling
|
||||||
|
|
||||||
|
FROM debian:sid-slim
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY --from=build /app/Bowling Bowling
|
||||||
COPY rolls.txt /app/
|
COPY rolls.txt /app/
|
||||||
|
|
||||||
#RUN g++ src/*.cpp -o Bowling
|
|
||||||
|
|
||||||
CMD ["./Bowling", "rolls.txt"]
|
CMD ["./Bowling", "rolls.txt"]
|
||||||
|
|||||||
+1
-1
@@ -101,7 +101,7 @@ string PrintFrames::parseValue(vector<Frame> frames) {
|
|||||||
else if (frames[i].Roll[0] == 0 && frames[i].Roll[1] == 10 && frames[i].Roll[2] == 10) {
|
else if (frames[i].Roll[0] == 0 && frames[i].Roll[1] == 10 && frames[i].Roll[2] == 10) {
|
||||||
ss << "-, /, X";
|
ss << "-, /, X";
|
||||||
} else {
|
} else {
|
||||||
ss << frames[i].Roll[0] << ", / ";
|
ss << frames[i].Roll[0] << ", /, " << frames[i].Roll[2];
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user