Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Eingabe verbessert
  • Loading branch information
thomasspaeth committed Jun 8, 2012
commit 0d7732519f9ebb036d8e693b211287f4b37ed5b4
14 changes: 10 additions & 4 deletions Chess/Interface/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ void Interface::einlesen(int p)
std::cout << "Spieler " << p << ": Bitte Zug eingeben: ";

std::cin >> p1a >> p1b >> p2a >> p2b;
/*p1a='e';
p2a='e';
p1b=2;
p2b=4;*/

while(std::cin.bad() || std::cin.fail())
{
std::cin.clear();
std::cin.ignore(100, '\n');
std::cout << "Spieler " << p << ": Bitte Zug eingeben: ";
std::cin >> p1a >> p1b >> p2a >> p2b;
}


}

void Interface::ausgabe(brett* b)
Expand Down