This project is an implementation of a script the reads a listing of game results for a soccer league, returning the top teams at the end of a given match.
- Node v10.13.0 (LTS as of May 2019) or higher
- To execute the script based on the original input
cd
into the home directory of this repository and runnode mathchday.js
- See test folder with other sample input .txt files
- Implementations of test due rely on there being a new line at the end of each file, which is in accordance with the sample file given
- To test against the different files please change the path for the file in
matchday.js
on line 4 with the path of the sample file in the test folder
-
(Apologies for not making this simpler, wouldve done so with reading input from the terminal very easily but wanted to make sure I submitted on time)