|
8 | 8 | #include "DevelopmentCard.h" |
9 | 9 | #include "Util.h" |
10 | 10 | #include "UnitTest++.h" |
11 | | - |
| 11 | + |
12 | 12 | void testBuyingCard(Player& test_player, std::unique_ptr<DevelopmentCard> card, bool correct_result){ |
13 | 13 | int prevOre = test_player.getOre(); |
14 | 14 | int prevWheat = test_player.getWheat(); |
@@ -53,11 +53,6 @@ void testRoadBuildingCard(Player& test_player, bool correct_result, GameBoard& t |
53 | 53 |
|
54 | 54 |
|
55 | 55 | int prevCards = test_player.getRoadBuildingCards(); |
56 | | - std::cout |
57 | | - << "S1:" << start1.first<< "," << start1.second |
58 | | - << " E1:" << end1.first<< "," << end1.second |
59 | | - << " S2:" << start2.first<< "," << start2.second |
60 | | - << " E2:" << end2.first<< "," << end2.second << "\n"; |
61 | 56 |
|
62 | 57 | CHECK(test_player.playRoadBuilding(start1, end1, start2, end2) == correct_result); |
63 | 58 |
|
@@ -245,8 +240,6 @@ void testKnightCard(Player& test_player, bool correct_result, GameBoard& test_bo |
245 | 240 | int player_prevResourceSum = getResourceSum(test_player); |
246 | 241 | int opponent_prevResourceSum = getResourceSum(opponent); |
247 | 242 |
|
248 | | - std::cout << test_player.getName() << "| NL:(" << newLocation.first << ", " << newLocation.second << ") O:" << opponent.getName() << "\n"; |
249 | | - |
250 | 243 | CHECK(test_player.playKnight(newLocation, opponent) == correct_result); |
251 | 244 | if(correct_result){ |
252 | 245 | CHECK(newLocation == test_board.getRobber()); |
|
0 commit comments