Start the application for NHL 2002 tournament
$ tourcli nhl2002 Loading in 0.118012 sec
Load results
T0ur>> l /usr/local/share/libtour/data/nhl2002_res.txt Done in 0.382751 sec
Get help on the read-only queries
T0ur>> h q Queries, start with `q': i - print tour info s [-s <stage-id>] - print stage info g -s <stage-id> [-g <group-id>] - print groups for stage <stage-id> t -s <stage-id> [-g <group-id>] - print teams for stage <stage-id> [group <group-id>] k -s <stage-id> [-g <group-id>] [-m <game-id-list> - print schedule for stage <stage-id> [group <group-id>] p -s <stage-id> -g <group-id> - print standings for stage <stage-id> group <group-id> sc -s <stage-id> -g <group-id> - print sorting conflicts for stage <stage-id> group <group-id> scd -s <stage-id> -g <group-id> -pos <position-range> - print details for a sorting conflict for team positions <position-range> in stage <stage-id> group <group-id> x -s <stage-id> [-g <group-id>] - print excessive game ids for stage <stage-id> [group <group-id>] b -s <stage-id> -m <game-id> - print groups that contain game <game-id> for stage <stage-id> tf -s <stage-id> - print team fields for stage <stage-id> gf -s <stage-id> - print game fields for stage <stage-id> sf - print schedule fields df - print date/time format used in schedule definitions hp - print position of the home team w - print winners ft -s <stage-id> - print available team filters for custom groups fg -s <stage-id> - print available game filters for custom groups fa -s <stage-id> -(ft|fg) <filter name> - print required arguments for a team or game filter mp -s <stage-id> - print maximum point in game for stage <stage-id> Done in 0.00415516 sec
Print the stages
T0ur>> q s ------------------------------------ Stage Information --- ------------------------- ------ Id Name State --- ------------------------- ------ S1 Regular Season c S2 Conference Quater Finals c S3 Conference Semi Finals c S4 Conference Finals c S5 Stanley Cup Games c ------------------------------------ Done in 0.00150084 sec
Print groups of stage "S1"
T0ur>> q g -s S1 --------------------------------------------- Stage S1: Group Information ----- ------------------- ------------ ------ Id Name Description State ----- ------------------- ------------ ------ East Eastern Conference c West Western Conference c AT Atlantic Division c NE Northeast Division c SE Southeast Division c CT Central Division c NW Northwest Division c PC Pacific Division c ALL All Teams c --------------------------------------------- Done in 0.00175095 sec
Print teams of group "PC" in stage "S1"
T0ur>> q t -s S1 -g PC ------------------------------------------------------------- Regular Season (S1), Group PC, Teams ----- ----------- ------------ --------------------- -------- GbId LcId NAME ORIGIN COUNTRY ----- ----------- ------------ --------------------- -------- ANA Anaheim Anaheim Anaheim Mighty Ducks USA DAL Dallas Dallas Dallas Stars USA LA LosAngeles Los Angeles Los Angeles Kings USA PHO Phoenix Phoenix Phoenix Coyotes USA SJ SanJose San Jose San Jose Sharks USA ------------------------------------------------------------- Done in 0.00125909 sec
Print table of standings of group "PC" in stage "S1"
T0ur>> q p -s S1 -g PC -------------------------------------------------------------------- Regular Season (S1), Group PC ---- ------------ ------ ----- ------ ------- ---- ---- ---- ------- Pos Team GAMES WINS DRAWS LOSSES OTL GF GA POINTS ---- ------------ ------ ----- ------ ------- ---- ---- ---- ------- 1 San Jose 82 44 8 27 3 248 199 99 2 Phoenix 82 40 9 27 6 228 210 95 3 Los Angeles 82 40 11 27 4 214 190 95 4 Dallas 82 36 13 28 5 215 213 90 5 Anaheim 82 29 8 42 3 175 198 69 -------------------------------------------------------------------- Done in 0.00162506 sec
Print team result fields for stage "S1" (see the table of standings above)
T0ur>> q tf -s S1 ------- Stage Regular Season (S1), Team Fields ------- Value ------- GAMES WINS DRAWS LOSSES OTL GF GA POINTS ------- Done in 0.000512123 sec
Print groups that contain game "1000" within stage "S1"
T0ur>> q b -s S1 -m 1000 ------ Stage Regular Season (S1), groups that contain game 1000 ------ Group ------ East West NE PC ALL ------ Done in 0.000503778 sec
Print winners
T0ur>> q w --------------------------------- Winners ----------------------- --------- Winner Team ----------------------- --------- Stanley Cup Winner Detroit East Conference Winner Carolina West Conference Winner Detroit --------------------------------- Done in 0.00117803 sec
Print help on modifying queries
T0ur>> h i Inserts, start with `i': m -m <game-id> -r "<game-res>" -s <stage-id> - insert result <game-res> for game <game-id> d -m <game-id> -s <stage-id> - delete result of game <game-id> c -s <stage-id> - set stage <stage-id> to be complete uc -s <stage-id> - set stage <stage-id> to be incomplete (invalidates next stage(s)!) g -s <stage-id> -g <group-id> -id <new-group-id> [-n <new-group-name>] \ [-ft <team-filter>] [-fg <game-filter>] - create a group with ID <new-group-id> and name <new-group-name> within stage <stage-id> after group <group-id> using <team-filter> and/or <game-filter> dg -s <stage-id> -g <group-id> - delete a group with ID <group-id> within stage <stage-id> sc -s <stage-id> -g <group-id> -pos <position-range> -sol<team list> - resolve sorting conflict between teams in <position-range> in group <group-id> of stage <stage-id> Done in 0.00304008 sec
Un-complete stage "S5"
T0ur>> i uc -s S4 Done in 0.000222921 sec
Print team positions in group "ALL" of stage "S4"
T0ur>> q p -s S4 -g ALL ----------------------------------- Conference Finals (S4), Group ALL ---- --------- ------ --- --- ----- Pos Team GAMES GF GA WINS ---- --------- ------ --- --- ----- 1-2 Detroit 7 22 13 4 1-2 Carolina 6 10 6 4 3 Colorado 7 13 22 3 4 Toronto 6 6 10 2 ----------------------------------- Done in 0.0014708 sec
Print sorting conflicts of group "ALL" in stage "S4"
T0ur>> q sc -s S4 -g ALL -------------- Stage Conference Finals (S4), group ALL, Sorting Conflicts ---- --------- Pos Resolved ---- --------- 1-2 - -------------- Done in 0.000473022 sec
Show details for this sorting conflict
T0ur>> q scd -s S4 -g ALL -pos 1-2 -------------- Stage Conference Finals (S4), group ALL, Sorting Conflict Details --------- ---- Team Pos --------- ---- Carolina -1 Detroit -1 -------------- Done in 0.000473022 sec
Resolve the sorting conflict between teams "Carolina" and "Detroit" in group "ALL" within stage "S4", give preference to "Carolina"
T0ur>> i sc -s S4 -g ALL -pos 1-2 -sol "\"Carolina\" \"Detroit\"" Done in 0.000316858 sec
Verify that the sorting conflict was resolved
T0ur>> q p -s S4 -g ALL ----------------------------------- Conference Finals (S4), Group ALL ---- --------- ------ --- --- ----- Pos Team GAMES GF GA WINS ---- --------- ------ --- --- ----- 1 Carolina 6 10 6 4 2 Detroit 7 22 13 4 3 Colorado 7 13 22 3 4 Toronto 6 6 10 2 ----------------------------------- Done in 0.00136495 sec
Print game schedule of group "E" in stage "S4"
T0ur>> q k -s S4 -g E ----------------------------------------------------------------- Conference Finals (S4), Group E, Games ----- --------------- --------- --------- --- --- --- --- --- --- ID DATE TEAM1 TEAM2 G1 G2 OT p1 p2 ro ----- --------------- --------- --------- --- --- --- --- --- --- 1315 16.05.02 19:00 Toronto Carolina 2 1 - 1 0 - 1316 19.05.02 19:00 Toronto Carolina 1 2 + 0 1 - 1317 21.05.02 19:00 Carolina Toronto 2 1 + 1 0 - 1318 23.05.02 19:00 Carolina Toronto 3 0 - 1 0 - 1319 25.05.02 19:00 Toronto Carolina 1 0 - 1 0 - 1320 28.05.02 19:00 Carolina Toronto 2 1 + 1 0 - 1321 30.05.02 19:00 Toronto Carolina - ----------------------------------------------------------------- Done in 0.00203395 sec
Print excessive games in stage "S4"
T0ur>> q x -s S4 ----- Stage Conference Finals (S4), Excessive games ----- Id ----- 1321 ----- Done in 0.0010891 sec
Delete result of game "1320" withing stage "S4"
T0ur>> i d -m 1320 -s S4 Done in 0.000285149 sec
Print game result fields for stage "S4"
T0ur>> q gf -s S4 ------------ Stage Conference Finals (S4), Game Fields ------ ----- Value Type ------ ----- G1 int G2 int OT bool ------------ Done in 0.000478983 sec
Insert result of game "1320" in stage "S4", result string should correspond to the game result fields for this stage (as in the previous example)
T0ur>> i m -m 1320 -s S4 -r "2 1 1" Done in 0.000383139 sec
Print available game filters for stage "S1"
T0ur>> q fg -s S1 ---------------------------------------------------- Game filters ---------- ----------------------------------------- Name Description ---------- ----------------------------------------- at-away away games at-home home games game-fld Filter games based on a game field value time-span Filter games based on a time span vs-group games of a group vs another group vs-teams games of a group vs given teams ---------------------------------------------------- Done in 0.00111818 sec
Print arguments for the game filter "vs-group" in stage "S1"
T0ur>> q fa -fg vs-group -s S1 ----------------- Arguments for game filter vs-group --------- ------- Name Type --------- ------- group id string ----------------- Done in 0.000692129 sec
Create a group "East vs West" with ID "zzz" based on group "East" of stage "S1", give the argument "West" to the "vs-group" filter
T0ur>> i g -s S1 -g East -id zzz -n "East vs West" \ -fg "vs-group \"West\"" Done in 0.0687809 sec
Print groups for stage "S1"
T0ur>> q g -s S1 ------------------------------------------------------------------ Stage S1: Group Information ----- ------------------- --------------------------------- ------ Id Name Description State ----- ------------------- --------------------------------- ------ East Eastern Conference c zzz East vs West games by group zzz vs group West c West Western Conference c AT Atlantic Division c NE Northeast Division c SE Southeast Division c CT Central Division c NW Northwest Division c PC Pacific Division c ALL All Teams c ------------------------------------------------------------------ Done in 0.00174999 sec
Print standings for the group we just created
T0ur>> q p -s S1 -g zzz --------------------------------------------------------------------- Regular Season (S1), Group zzz ---- --------------- ------ ----- ------ ------- ---- --- --- ------- Pos Team GAMES WINS DRAWS LOSSES OTL GF GA POINTS ---- --------------- ------ ----- ------ ------- ---- --- --- ------- 1 Toronto 22 14 1 6 1 77 65 30 2 Tampa Bay 22 12 2 7 1 48 37 27 3 Boston 22 11 3 6 2 56 46 27 4 N.Y. Islanders 22 11 1 9 1 60 62 24 5-6 Ottawa 22 10 2 8 2 67 60 24 5-6 Carolina 22 10 4 8 0 60 60 24 7 New Jersey 22 10 2 9 1 56 48 23 8 Washington 22 10 2 10 0 57 63 22 9 Philadelphia 22 9 3 9 1 62 57 22 10 Montreal 22 9 3 10 0 54 60 21 11 Buffalo 22 7 2 13 0 55 64 16 12 Florida 22 6 3 12 1 42 64 16 13 N.Y. Rangers 22 6 1 14 1 47 77 14 14 Pittsburgh 22 4 0 17 1 43 83 9 15 Atlanta 22 3 1 17 1 35 77 8 --------------------------------------------------------------------- Done in 0.00483418 sec
Delete the group we created
T0ur>> i dg -g zzz -s S1 Done in 0.00029397 sec
Create a group with the default name and ID "zzz" based on group "ALL" of stage "S1" so that it only contains Canadian teams and games played in November 2001
T0ur>> i g -s S1 -g ALL -id zzz -ft "team-fld COUNTRY equals \ (\"Canada\")" -fg "time-span \"1.11.01 0:0\" \"1.12.01 0:0\"" Done in 0.0682631 sec
Print standings for the group we just created
T0ur>> q p -s S1 -g zzz ---------------------------------------------------------------- Regular Season (S1), Group zzz ---- ---------- ------ ----- ------ ------- ---- --- --- ------- Pos Team GAMES WINS DRAWS LOSSES OTL GF GA POINTS ---- ---------- ------ ----- ------ ------- ---- --- --- ------- 1-3 Toronto 14 7 1 4 2 33 30 17 1-3 Montreal 13 7 2 3 1 34 31 17 1-3 Edmonton 13 7 2 3 1 30 18 17 4 Vancouver 16 7 2 7 0 38 36 16 5 Ottawa 10 6 2 2 0 33 23 14 6 Calgary 13 5 4 4 0 36 35 14 ---------------------------------------------------------------- Done in 0.00299215 sec
Go to the first, previous, next, last section, table of contents.