thanhpd / soen6441

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

Can issue multiple duplicated advancement orders #259

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     |14      |

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

|country3       |3  |continent2     |5    |1-country1, 2-country2, 4-country4, 6-country6                                                           |Neutral     |111     |

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

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

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

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

Please enter a command: 
advance country4 country6 13
Command entered is: advance country4 country6 13
Invalid input! Country country4 is not owned by player1.
Invalid input! Country name country6 does not exist.
Please re-enter the invalid order. The following orders are available: "deploy", "advance", "bomb", "blockade", "airlift", "negotiate", "commit", "showmap" or "quit".
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: 
advance country4 country6 13
Command entered is: advance country4 country6 13
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 13
Command entered is: advance country4 country6 13
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 13
Command entered is: advance country4 country6 13
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 13
Command entered is: advance country4 country6 13
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 13
Command entered is: advance country4 country6 13
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: 
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 5
Player player2 deployed 3 armies to country 4
player2 launches an attack on country6, owned by player1! The battle rages on...
player2's forces have been defeated in the battle for country6, owned by player1.
player2 launches an attack on country6, owned by player1! The battle rages on...
player2 dominates! You've conquered country6. Keep the conquest going!
player2 deployed 13 armies to country6.
player2 deployed 13 armies to country6.
player2 deployed 13 armies to country6.

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: [negotiate, advance, blockade, deploy, quit, bomb, showmap, commit, airlift]
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     |14      |

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

|country3       |3  |continent2     |5    |1-country1, 2-country2, 4-country4, 6-country6                                                           |Neutral     |111     |

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

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

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

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