#include "Tile.h" int main() { // Create some tiles to test with Tile tile1(Colour::RED, Shape::CIRCLE); Tile tile2(Colour::BLUE, Shape::CIRCLE); Tile tile3(Colour::RED, Shape::SQUARE); Tile tile4(Colour::BLUE, Shape::SQUARE); // Test the isValidPlacement function with different combinations of tiles bool isValid1 = Tile::isValidPlacement(tile1, tile2); // should return true bool isValid2 = Tile::isValidPlacement(tile1, tile3); // should return false bool isValid3 = Tile::isValidPlacement(tile2, tile4); // should return true bool isValid4 = Tile::isValidPlacement(tile3, tile4); // should return false // Print the results std::cout << "isValid1: " << isValid1 << std::endl; std::cout << "isValid2: " << isValid2 << std::endl; std::cout << "isValid3: " << isValid3 << std::endl; std::cout << "isValid4: " << isValid4 << std::endl; return 0; }int main (void) { // Create some tiles to test with Tile tile1(Colour::RED, Shape::CIRCLE); Tile tile2(Colour::BLUE, Shape::CIRCLE); Tile tile3(Colour::RED, Shape::SQUARE); Tile tile4(Colour::BLUE, Shape::SQUARE); // Test the isValidPlacement function with different combinations of tiles bool isValid1 = Tile::isValidPlacement(tile1, tile2); // should return true bool isValid2 = Tile::isValidPlacement(tile1, tile3); // should return false bool isValid3 = Tile::isValidPlacement(tile2, tile4); // should return true bool isValid4 = Tile::isValidPlacement(tile3, tile4); // should return false std::cout << "isValid1: " << isValid1 << std::endl; std::cout << "isValid2: " << isValid2 << std::endl; std::cout << "isValid3: " << isValid3 << std::endl; std::cout << "isValid4: " << isValid4 << std::endl; return 0; }
## Commit History 1. Fix math operation in add function. 2. Fix indentation and fix invalid code in main function. ## Author * Name: [Anzela Zafar](https://github.com/anzela) * Email: [anzela.zafar@mail.utoronto.ca](mailto:anzela.zafar@mail.utoronto.ca) * Student Number: 100758470 ## License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.