-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
52 lines (36 loc) · 1.06 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Quake Log Parser
## Description
**Quake Log Parser** is a Java program that parses log files generated by Quake 3 Arena servers. The project implement the following functionalities:
- Read the log file
- Group the game data of each match
- Collect kill data
## Example
21:42 Kill: 1022 2 22: <world> killed Isgalamido by MOD_TRIGGER_HURT
The player "Isgalamido" died because he was wounded and fell from a height enough to kill him.
2:22 Kill: 3 2 10: Isgalamido killed Dono da Bola by MOD_RAILGUN
The player "Isgalamido" killed the player "Dono da Bola" using the Railgun weapon.
Example of grouped information for each match:
```json
"game_1": {
"total_kills": 45,
"players": ["Dono da bola", "Isgalamido", "Zeh"],
"kills": {
"Dono da bola": 5,
"Isgalamido": 18,
"Zeh": 20
}
}
```
## How to execute
**Report**
javac -cp lib/gson-2.8.6.jar -d bin src/ReportGenerator.java
And then:
java -cp lib/gson-2.8.6.jar;bin ReportGenerator
**Parser**
```console
java -cp lib/gson-2.8.6.jar:bin Main
```
And then:
```console
java -cp lib/gson-2.8.6.jar;bin Main
```