You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::cout<<colorCodes[p.color].first << p.symbol << "" << p.name << RESET_COLOR <<" You have " <<p.money<<"$ in your account.\n"
1014
1024
<<"How Much money do you want to give " << colorCodes[players[otherplayers[sel]].color].first << players[otherplayers[sel]].symbol << "" << players[otherplayers[sel]].name << RESET_COLOR << "?" <<std::endl;
1015
-
std::cin>>amount1;
1025
+
while (true){
1026
+
std::cin>>amount1;
1027
+
if (amount1 <= p.money){
1028
+
break;
1029
+
}else{
1030
+
std::cout<<"You don't have enough money! 😡"<<std::endl;
0 commit comments