Implemented two-dimensional parity check algorithm on chat server & client skeleton.
-
alnum2matrix(msg): Every message sent from a client is broken down to characters and then converted to a 4 column matrix confirming to the ASCII code.
-
matrix_list2matrix_string(matrix): Turn the matrix to a string type for sending
-
randomize_one_digit(matrix): Intentionally modify one of the number in the matrix
-
matrix_string2matrix_list(mat_string): Turn the string type back to matrix for receiving and error correction.
-
matrix2alnum(matrix): Convert the matrix back to string message
Use binary number instead of ASCII code to reflect better how the algorithm works in reality.