thanhpd / soen6441

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

Benevolent bug: Wrong country ownership/Negative armies #302

Closed thanhpd closed 10 months ago

thanhpd commented 10 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     |6       |

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

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

|country4       |4  |continent2     |5    |3-country3, 6-country6                                                                                   |player1     |23      |

|country5       |5  |continent3     |8    |1-country1, 6-country6                                                                                   |player2     |40      |

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

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

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

Issuing orders for player player2:
country6
This order is added to the list of orders successfully.
advance country5 country6 40
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:
advance country1 country5 1
Command entered is: advance country1 country5 1
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.

You are in the EXECUTEORDER PHASE. Commands avaliable are: [none]
Executing orders now...
Player player1 deployed 11 armies to country 1
Player player2 deployed 8 armies to country 6
player1 launches an attack on country5, owned by player2! The battle rages on...
player1's forces have been defeated in the battle for country5, owned by player2.
player2 deployed 40 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: [quit, blockade, airlift, deploy, showmap, negotiate, bomb, advance, commit]
Issuing orders for player player1:
You can issue orders for 11 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     |16      |

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

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

|country4       |4  |continent2     |5    |3-country3, 6-country6                                                                                   |player1     |23      |

|country5       |5  |continent3     |8    |1-country1, 6-country6                                                                                   |player2     |-1      |

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

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

Please enter a command:
thanhpd commented 10 months ago

Duplicated with #300