List of commands
The command line, located in the status bar, opens by pressing the SPACE key. As you type a command, a list of suggestions appears automatically: the TAB key (or SHIFT-TAB) cycles through the suggestions and completes the command, while ESC closes the list (a second ESC closes the command line). The UP and DOWN keys remain reserved for the command history.
Global operations
Command |
Action |
|---|---|
new, ne, n |
Create a new database. |
open, op, o |
Open an existing database. |
open_group, og |
Opens a database in a new tab group, the current database staying open in its own (see Open libraries). |
import_db, idb |
Import and merge another database. |
export_db, edb |
Export the current selection to a new database. |
quit, q |
Close blunderDB. |
help, he, h |
Open blunderDB help. |
meta |
Display database metadata. |
eval, epc |
Opens the Eval panel (Effective Pip Count, winning probability and cube verdict in bearoff). |
transcribe, tr |
Opens the Transcription panel: the match drafts being typed in, and what it takes to start one. |
direct |
Opens the Tournaments panel to direct a tournament, and closes it again. While a direction is open there, the main area shows the tournament instead of the board; any other tab brings the board back. |
reference, ref |
Shows/hides the Reference data panel: MET, take points, gammon values, aggregated view and Neil’s numbers (see Reference data panel). |
met |
Opens the Reference data panel on the Kazaross-XG2 match equity table. |
cm |
Opens the cube matrix: the current position’s verdict at every score of a 5-, 7- or 9-point match. |
tags |
Opens the tag vocabulary: the tags used in this database, with the number of positions, clickable to run the search. |
log |
Opens the activity log: the last two hundred lines of the log file, with what it takes to copy them into a report, or to open the folder holding them. |
train |
Opens the Training panel. With an argument, it opens and starts: |
duel |
Opens the Duel panel: a match against the Bot, with blunderDB as Arbiter (see Duel panel). |
tp2, tp2_live, tp2_last, tp4, tp4_live, tp4_last |
Opens the Reference data panel on the Take points tab, which gathers the tables for the cube at 2 and 4, for long races and for the last roll: these six commands open the same tab. |
gv1, gv2, gv4 |
Opens the Reference data panel on the Gammon values tab, which gathers the tables for the cube at 1, 2 and 4: these three commands open the same tab. |
Editing and search
Command |
Action |
|---|---|
write, wr, w |
Save the current position. |
write!, wr!, w! |
Update the current position. |
s |
Search for positions with filters. Refused in a collection or a match, where it would replace the list being studied: the status bar then points to |
ss |
Search among the positions on screen: current results, open collection or match under review. |
Search Filters
This table is the reference for the search grammar: the command line, the filter library and the --query flag of blunderdb search all read the same tokens. The CLI Equivalent column gives, when one exists, the search flag that does the same thing (see Command Line Interface (CLI)); a dash marks a filter that only the grammar expresses.
Six tokens do not carry their value: they read it from the search board. cube and score take up the cube and the score set there, d the decision type, D and D1 the dice, x the structure drawn in the Except tab. A roll is therefore never written into the token: D65 does not exist, only the exclusion form carries its digits (xD65). On the command line, where there is no board, these tokens compare against an empty board; it is the flags of the third column that must be used there instead.
A single token ranks instead of narrowing: like orders the result by ascending distance to a target position, and every other token narrows the set it ranks.
Errors and equities are counted in thousandths of equity — the millipoints of the table below: E>100 keeps the moves that cost at least a tenth of a point, one point being worth 1000 millipoints.
Two full searches:
s p>30 w40,60 xco— more than 30 pips behind, between 40% and 60% winning chances, no comment.s ph:race E>50 co:xg— in a race, a move that cost at least 50 millipoints, and a comment coming from eXtreme Gammon.
Query |
Action |
CLI Equivalent |
|---|---|---|
cube, cub, cu, c |
The position checks the cube configuration. |
|
score, sco, sc, s |
The position checks the score. |
|
d |
The position checks the dice or the cube decision. |
|
dd |
The decision is a cube action of type Double / No Double (not a Take / Pass answer). Implies a cube decision. |
|
dr |
The decision is a Take / Pass answer. Implies a cube decision; together with |
|
D |
The position matches the dice roll (both dice, any order). |
|
D1 |
The position matches the dice roll on the first die only (the first die’s value appears on either die of the position). |
|
xD65 |
The position was not played with the 6-5 roll (any order). The value is given in the token; repeatable to exclude several rolls ( |
— |
nc |
The position has no contact. |
— |
ph:race |
The position is in a given phase of the game: |
|
gt:holding |
The position falls under a given plan of play, from the point of view of the player on roll: |
|
#prime |
The position carries this tag in one of its comments. A tag is a |
— |
n>x |
The position was met at least x times in the database — the number of decisions taken on it, all matches and all players together; with |
— |
M |
The position or the mirror one meets the filters. |
— |
i |
The position was imported on its own, not brought in by a match import. |
|
fl |
The position was flagged in the source software, when importing an eXtreme Gammon match. |
|
x |
The position contains none of the checkers of the exclusion structure (the “Except” tab of the search panel). |
— |
p>x |
The player has at least x pips behind in the race. |
|
p<x |
The player has at most x pips behind in the race. |
|
px,y |
The player has between x and y pips behind in the race. |
|
P>x |
The player has a race of at least x pips. |
— |
P<x |
The player has a race of at most x pips. |
— |
Px,y |
The player has a race between x and y pips. |
— |
e>x |
The equity (in millipoints) of the position is greater than x. |
— |
e<x |
The equity (in millipoints) of the position is less than x. |
— |
ex,y |
The equity (in millipoints) of the position is between x and y. |
— |
E>x |
The error of the move played by player 1 (in millipoints) is greater than x. |
|
E<x |
The error of the move played by player 1 (in millipoints) is less than x. |
|
Ex,y |
The error of the move played by player 1 (in millipoints) is between x and y. |
|
mg>x |
Difficulty of the decision: the margin (in millipoints, the scale of |
|
mg<x |
The margin between the best choice and the next one is below x millipoints: a close decision. |
|
mgx,y |
The margin between the best choice and the next one is between x and y millipoints, bounds included. |
|
tm>x |
Player 1 took more than x seconds to decide (checker play or cube; x may be a decimal). A play whose duration is unknown never matches. With |
— |
tm<x |
Player 1 took less than x seconds to decide. |
— |
tmx,y |
Player 1 took between x and y seconds to decide, bounds included. |
— |
w>x |
The player has winning chances greater than x%. |
|
w<x |
The player has winning chances less than x%. |
|
wx,y |
The player has winning chances between x% and y%. |
|
g>x |
The player has gammon chances greater than x%. |
— |
g<x |
The player has gammon chances less than x%. |
— |
gx,y |
The player has gammon chances between x% and y%. |
— |
b>x |
The player has backgammon chances greater than x%. |
— |
b<x |
The player has backgammon chances less than x%. |
— |
bx,y |
The player has backgammon chances between x% and y%. |
— |
W>x |
The opponent has winning chances greater than x%. |
— |
W<x |
The opponent has winning chances less than x%. |
— |
Wx,y |
The opponent has winning chances between x% and y%. |
— |
G>x |
The opponent has gammon chances greater than x%. |
— |
G<x |
The opponent has gammon chances less than x%. |
— |
Gx,y |
The opponent has gammon chances between x% and y%. |
— |
B>x |
The opponent has backgammon chances greater than x%. |
— |
B<x |
The opponent has backgammon chances less than x%. |
— |
Bx,y |
The opponent has backgammon chances between x% and y%. |
— |
o>x |
The player has at least x checkers off. |
|
o<x |
The player has at most x checkers off. |
— |
ox,y |
The player has between x and y checkers off. |
— |
O>x |
The opponent has at least x checkers off. |
|
O<x |
The opponent has at most x checkers off. |
— |
Ox,y |
The opponent has between x and y checkers off. |
— |
k>x |
The player has at least x backcheckers. |
— |
k<x |
The player has at most x backcheckers. |
— |
kx,y |
The player has between x and y backcheckers. |
— |
K>x |
The opponent has at least x backcheckers. |
— |
K<x |
The opponent has at most x backcheckers. |
— |
Kx,y |
The opponent has between x and y backcheckers. |
— |
z>x |
The player has at least x checkers in the zone. |
— |
z<x |
The player has at most x checkers in the zone. |
— |
zx,y |
The player has between x and y checkers in the zone. |
— |
Z>x |
The opponent has at least x checkers in the zone. |
— |
Z<x |
The opponent has at most x checkers in the zone. |
— |
Zx,y |
The opponent has between x and y checkers in the zone. |
— |
bo>x |
The player has at least x blots in the outfield. |
— |
bo<x |
The player has at most x blots in the outfield. |
— |
box,y |
The player has between x and y blots in the outfield. |
— |
BO>x |
The opponent has at least x blots in the outfield. |
— |
BO<x |
The opponent has at most x blots in the outfield. |
— |
BOx,y |
The opponent has between x and y blots in the outfield. |
— |
bj>x |
The player has at least x blots in the jan. |
— |
bj<x |
The player has at most x blots in the jan. |
— |
bjx,y |
The player has between x and y blots in the jan. |
— |
BJ>x |
The opponent has at least x blots in the jan. |
— |
BJ<x |
The opponent has at most x blots in the jan. |
— |
BJx,y |
The opponent has between x and y blots in the jan. |
— |
|
The position comments contain at least one of the words. |
— |
co |
The position carries a comment, whatever its content. |
|
xco |
The position carries no comment. |
|
co:user |
The position carries a comment of a given origin: |
|
|
The position carries a comment signed by this author (full name, case-insensitive). |
|
|
The best checker moves containing at least one of the patterns. |
— |
|
The best cube decisions for No Double/Take, Double Take, Double Pass. |
— |
T>x |
Date the position was added to the database, after x (YYYY/MM/DD). This is not the match date ( |
— |
T<x |
Date the position was added to the database, before x (YYYY/MM/DD). This is not the match date ( |
— |
Tx,y |
Date of position addition between x and y (YYYY/MM/DD). |
— |
max |
Search in match with ID x (e.g. ma3). |
|
max,y |
Search in matches with IDs from x to y (e.g. ma2,5). |
|
tnx |
Search in tournament with ID x (e.g. tn1). |
|
tnx,y |
Search in tournaments with IDs from x to y (e.g. tn1,3). |
|
tn’name’ |
Search in tournaments whose name is |
|
rd:x |
Search in matches of round x (e.g. |
|
ml:x |
The match length is x points. Forms |
|
aw:x |
The player is x points away from winning the match, whatever its length. Forms |
|
AW:x |
The opponent is x points away from winning the match, in the forms of |
|
cr |
The position is played in the Crawford game: one player is 1 point away, the cube is dead. |
|
pcr |
The position is played after the Crawford game: one player is 1 point away, the cube is alive. |
|
md:x..y |
Match date, read from the position’s |
|
idx |
Search for the position with identifier x (e.g. id12). |
|
idx,y |
Search for the positions with identifiers x to y (e.g. id5,10). |
|
|
Search positions from a match involving the named player, at either seat (e.g. |
|
|
Only the decisions made by this player: the player on roll is the one who occupies the seat of that name in the match (player 1 or player 2). Same case and wildcard rules as |
|
|
Only matches where this player is the opponent of the |
|
pr>x |
The match PR of the player who made the decision is at least x, read from the per-match statistics at that player’s seat (not the opponent’s PR); a match without a PR is excluded. Forms |
|
ad:xg |
Engine and depth of the analysis recorded for the position. Engines: |
|
like, like42, like<1, like42<1 |
Ranks the result by ascending distance, in rolls, to a target position instead of narrowing it: |
— |
The pl, pl!, op, tn, au, m and t values open with a double quote or an apostrophe and close with either. A token that keeps a quote without forming a complete value is ignored, and blunderdb search --query reports it. A tag may contain an apostrophe (#l'ouverture), never a double quote. The semicolon is the separator of identifier and tag lists: it appears in no value, and ma1;2 is not a token (write ma1 ma2).
Transcribing from a terminal
The command line has no transcription command: moves are entered in the Transcription tab. Outside the application, they go through blunderdb call (Transcribing through the API), for example blunderdb call transcriptions.apply --db base.db --if-match 3 --json '{"id":1,"gesture":{"Kind":"validate"}}'. --if-match names the revision returned by the previous call; every call is its own session, with no sessionId and no undo from one call to the next.
Various commands
Command |
Action |
|---|---|
clear, cl |
Clear the command history. |