a simple race simulation program(COMP2401a1) Author: Mox Purpose: A C program to simulate a race between a tortoise and a hare. Files: assignment1.c README.txt
To compile the code: type the following code in console. (Make sure that you are in the right directory where assignment1.c is) 'gcc -o assignment1 assignment1.c' To launch the code: type the following code in the console.(Make sure that you are in the right directory where assignment1 is) './assignment1'
NOTICE: the array range from 0 to 69 (totally 70 steps) when competitor reach position 69 or above, the program will consider it as it reach the moutain top. competitors start at position 0(as ground)