thanhpd / soen6441

Concordia University - SOEN 6441 - Advanced Programming Practices
MIT License
1 stars 1 forks source link

Advance orders are still executed with diplomacy card in effect #249

Closed thanhpd closed 11 months ago

thanhpd commented 11 months ago
Please enter a command: 
showmap
Command entered is: showmap
Displaying Map
Map is valid
+---------------+---+---------------+-----+---------------------------------------------------------------------------------------------------------+------------+--------+

| Country       |ID | Continent     |Bonus| Neighbor Countries                                                                                      |   Owner    | Armies |

+---------------+---+---------------+-----+---------------------------------------------------------------------------------------------------------+------------+--------+

|country1       |1  |continent1     |5    |2-country2, 3-country3, 5-country5                                                                       |player1     |1       |

|country2       |2  |continent1     |5    |1-country1, 3-country3                                                                                   |player1     |3       |

|country3       |3  |continent2     |5    |1-country1, 2-country2, 4-country4, 6-country6                                                           |player1     |0       |

|country4       |4  |continent2     |5    |3-country3, 6-country6                                                                                   |player2     |8       |

|country5       |5  |continent3     |8    |1-country1, 6-country6                                                                                   |player1     |3       |

|country6       |6  |continent3     |8    |4-country4, 5-country5                                                                                   |player1     |6       |

Issuing orders for player player1:
You can issue orders for 14 armies
You have the following cards: DIPLOMACY

Please enter a command: 
deploy 4 14
Command entered is: deploy 4 14
Invalid input! The country id should be one of the countries owned by the player. Please try again.
This deploy order is invalid. It will not be added to the list of orders.
Please re-enter the invalid order. The following orders are available: "deploy", "advance", "bomb", "blockade", "airlift", "negotiate", "commit" or "quit".
Please enter a command: 
deploy 3 14
Command entered is: deploy 3 14
This order is added to the list of orders successfully.

Issuing orders for player player2:
You can issue orders for 3 armies
You don't have any cards.

Please enter a command: 
deploy 4 3
Command entered is: deploy 4 3
This order is added to the list of orders successfully.

Issuing orders for player player1:
You can issue orders for 0 armies
You have the following cards: DIPLOMACY

Please enter a command: 
negotiate player2
Command entered is: negotiate player2
This order is added to the list of orders successfully.

Issuing orders for player player2:
You can issue orders for 0 armies
You don't have any cards.

Please enter a command: 
advance country4 country6 11
Command entered is: advance country4 country6 11
This order is added to the list of orders successfully.

Issuing orders for player player1:
You can issue orders for 0 armies
You don't have any cards.

Please enter a command: 
commit
Command entered is: commit
All orders are committed successfully.

Issuing orders for player player2:
You can issue orders for 0 armies
You don't have any cards.

Please enter a command: 
commit
Command entered is: commit
All orders are committed successfully.

You are in the EXECUTEORDER PHASE. Commands avaliable are: [none]
Executing orders now...
Player player1 deployed 14 armies to country 3
Player player2 deployed 3 armies to country 4
player1 is negotiating with player2
No attack detected between player1 and player2
player2 launches an attack on country6, owned by player1! The battle rages on...
player2 dominates! You've conquered country6. Keep the conquest going!

You are in the REINFORCEMENT PHASE. Commands avaliable are: [none]
Reinforcements have been assigned to the players.

You are in the ISSUEORDER PHASE. Commands avaliable are: [deploy, advance, commit, airlift, quit, negotiate, blockade, showmap, bomb]
Issuing orders for player player1:
You can issue orders for 6 armies
You don't have any cards.

Please enter a command: 
showmap
Command entered is: showmap
Displaying Map
Map is valid
+---------------+---+---------------+-----+---------------------------------------------------------------------------------------------------------+------------+--------+

| Country       |ID | Continent     |Bonus| Neighbor Countries                                                                                      |   Owner    | Armies |

+---------------+---+---------------+-----+---------------------------------------------------------------------------------------------------------+------------+--------+

|country1       |1  |continent1     |5    |2-country2, 3-country3, 5-country5                                                                       |player1     |1       |

|country2       |2  |continent1     |5    |1-country1, 3-country3                                                                                   |player1     |3       |

|country3       |3  |continent2     |5    |1-country1, 2-country2, 4-country4, 6-country6                                                           |player1     |14      |

|country4       |4  |continent2     |5    |3-country3, 6-country6                                                                                   |player2     |0       |

|country5       |5  |continent3     |8    |1-country1, 6-country6                                                                                   |player1     |3       |

|country6       |6  |continent3     |8    |4-country4, 5-country5                                                                                   |player2     |6       |

Issuing orders for player player1:
You can issue orders for 6 armies
You don't have any cards.

Please enter a command: