Skip to content

Commit 971255c

Browse files
committed
overview for trade
1 parent 6507e4f commit 971255c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

monopoly.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,17 @@ bool trading_menue(player &p){
11051105
do{
11061106
displayGameBoard();
11071107
std::cout<<colorCodes[players[otherplayers[sel]].color].first << players[otherplayers[sel]].symbol << " " << players[otherplayers[sel]].name << RESET_COLOR << "do you accept the trade?\n"
1108+
<<"You give: $" <<amount2;
1109+
for(int i : tiles2){
1110+
std::cout<<", "<<colorCodes[gameBoard[i].color].first<<gameBoard[i].tileName;
1111+
}
1112+
std::cout<<std::endl;
1113+
std::cout<<"You get: $"<<amount1;
1114+
for(int i : tiles1){
1115+
std::cout<<", "<<colorCodes[gameBoard[i].color].first<<gameBoard[i].tileName;
1116+
}
1117+
std::cout<<std::endl;
1118+
std::cout
11081119
<<"┌────────┬────────┐\n"
11091120
<<"│ 1: YES │ 0: NO │\n"
11101121
<<"└────────┴────────┘\n"

0 commit comments

Comments
 (0)