Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 979 Bytes

File metadata and controls

40 lines (22 loc) · 979 Bytes

This program displays the teams playing cricket and their respective scores in the terminal. The data is obtained from www.espncricinfo.com. Additionl information is stored in the MatchObject objects which can be accessed if needed, with slight changes to the code.

This works best with a maximized terminal.

Compilation

On UNIX:

Compile with:

javac -cp .:jsoup-1.9.2.jar CricketScores.java MatchObject.java

Run with:

java -cp .:$PATH_TO_FOLDER/jsoup-1.9.2.jar:$PATH_TO_FOLDER CricketScores

On Windows:

Compile with :

javac -cp .;jsoup-1.9.2.jar CricketScores.java MatchObject.java

Run with:

java -cp .;$PATH_TO_FOLDER/jsoup-1.9.2.jar;$PATH_TO_FOLDER CricketScores

Running

Linux users may be able to add a shortcut to the run command as follows:

vim ~/.bash_aliases
alias cricscores="java -cp.:$PATH_TO_FOLDER/jsoup-1.9.2.jar:$PATH_TO_FOLDER CricketScores
source ~/.bash_aliases

Run with:

cricscores