cpsc350-hw2: C++ Game of Life Assignment
a) Tarek El-Hajjaoui b) Student ID: 1902662 c) Chapman Email: [email protected] d) Course Number & Section: CPSC 350-03 e) Homework Assignment 2
Source Files: main.cpp Cell.h Cell.cpp Grid.h Grid.cpp Doughnut.h Doughnut.cpp Mirror.h Mirror.cpp Game.h Game.cpp FileError.h FileError.cpp 3) N/A
References:
-
ZyBooks
-
C++ inheritance: https://www.tutorialspoint.com/cplusplus/cpp_inheritance.htm & https://www.w3schools.com/cpp/cpp_inheritance.asp & https://stackoverflow.com/questions/33350175/c-override-inherited-methods
-
C++ validating user input: https://www.hackerearth.com/practice/notes/validating-user-input-in-c/
-
C++ sleep function: https://www.softwaretestinghelp.com/cpp-sleep/
-
C++ 2D array dynamic allocation: https://stackoverflow.com/questions/936687/how-do-i-declare-a-2d-array-in-c-using-new
-
C++ Read/Write Files: https://www.w3schools.com/cpp/cpp_files.asp
-
Convert a string to uppercase: https://stackoverflow.com/questions/735204/convert-a-string-in-c-to-upper-case
-
C++ generate random number between 0 and 1: https://stackoverflow.com/questions/9878965/rand-between-0-and-1
-
cmath library: http://www.cplusplus.com/reference/cmath/
-
C++ push_back string method: http://www.cplusplus.com/reference/string/string/push_back/
Instructions to run assignment:
- Compile with: g++ *.cpp or run make
- Run a.out followed by the name of the input file: ./a.out fileName
- Follow the instructions of the program that are prompted on the console.