LaraMo / Risk-Swift-Sloths

COMP 345 project taken in Fall 2023 - creating the RISK game with C++
Apache License 2.0
0 stars 2 forks source link

Orders List #3

Closed LaraMo closed 1 year ago

LaraMo commented 1 year ago

Implement a group of C++ classes that implement a Warzone player orders using the following design: Orders are created by the player during their turn and placed into the player’s list of orders. By default, each order is placed in the list sequentially. After orders are put in the list, the player can move them around in the list (using the move() method) or delete them (using the remove() method). The different kinds of orders are: deploy, advance, bomb, blockade, airlift, and negotiate. All orders must have a validate() method that verifies if the order is valid. All orders must have an execute() method that will result in some game action being implemented (see the project description document). Note that the orders’ actions do not need to be implemented at this point. Invalid orders can be created and put in the list, but their execution will not result in any action. All the classes/functions that you implement for this component must all reside in a single .cpp/.h file duo named Orders.cpp/Orders.h. You must deliver a file named OrdersDriver.cpp file that contains a free function named testOrdersLists() that creates a list of orders and demonstrates that the OrdersList implemented according to the following specifications: