FIBS Board backgammon forum

FIBS Client software => JavaFibs => Topic started by: amarganth on April 30, 2004, 02:34:26 PM

Title: The Crawford Game
Post by: amarganth on April 30, 2004, 02:34:26 PM
I like JavaFIBS very much.  :yes:

During a match, I miss to see, if it's the crawford game. While playing, I have it in mind, but after a resume or by watching other players, I can't see it.  :(

Will it be possible, to plan this feature in a future release of JavaFIBS?

Thanks in advance.

Title: The Crawford Game
Post by: cthulhu on April 30, 2004, 03:48:02 PM
I don't think if it's even possible to tell if the match is a crawford when you watch or resume because FIBS doesn't give you that information. I can be wrong of course.
Title: The Crawford Game
Post by: amarganth on April 30, 2004, 03:59:46 PM
I think, it's in the board-record of FIBS, but I'm not shure. I'll check that.  :D  
Title: The Crawford Game
Post by: amarganth on April 30, 2004, 05:20:57 PM
That's, what I've found out:

First, both of the players must accept the Crawford-Rule. This is done by the toggle command:
QuoteNAME
Ã,  toggle-crawford
VALUES
Ã,  YES: You insist on using the Crawford rule.
Ã,  NO:Ã,  You would like to play without it if your opponent agrees.
DEFAULT
Ã,  YES
SEE ALSO
Ã,  crawford
Second, the rawboard-command:
QuoteNAME
Ã,  rawboard - how to interpret the raw board output
DESCRIPTION
Ã,  If the rawboard toggle is set to yes you won't see the text representation
Ã,  of the board but a number of tokens separated by colons. The tokens sent
Ã,  by the server and their meaning are (the first token is always the
Ã,  word 'board'):Ã,  (tokens marked with + are new)
+ nameÃ,  Ã,  Ã,  Ã,   - the player's name
Ã,  nameÃ,  Ã,  Ã,  Ã,   - the opponent's name
Ã,  match length - match length or 9999 for unlimited matches
Ã,  player gotÃ,   - player's points in the match so far
Ã,  opponent got - opponent's points in the match so far
Ã,  boardÃ,  Ã,  Ã,  Ã,  - 26 numbers giving the board. Positions 0 and 25 represent
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,   the bars for the players (see below). Positive numbers
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,   represent O's pieces negative numbers represent X's pieces
Ã,  turnÃ,  Ã,  Ã,  Ã,   - -1 if it's X's turn, +1 if it's O's turn
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,   0 if the game is over
Ã,  diceÃ,  Ã,  Ã,  Ã,   - 2 numbers giving the player's dice. If it's the players
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,   turn and she or he hasn't rolled, yet both numbers are 0
+ diceÃ,  Ã,  Ã,  Ã,   - the opponent's dice (2 numbers)
Ã,  cubeÃ,  Ã,  Ã,  Ã,   - the number on the doubling cube
Ã,  may doubleÃ,   - 1 if player is allowed to double, 0 otherwise
+ may doubleÃ,   - the same for the opponent
Ã,  was doubledÃ,  - 1 if your opponent has just doubled, 0 otherwise
Ã,  colorÃ,  Ã,  Ã,  Ã,  - -1 if you are X, +1 if you are O
Ã,  directionÃ,  Ã,  - -1 if you play from position 24 to position 1
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,   +1 if you play from position 1 to position 24
Ã,  homeÃ,  Ã,  Ã,  Ã,   - 0 or 25 depending on direction (obsolete but included anyway)
Ã,  barÃ,  Ã,  Ã,  Ã,  Ã,  - 25 or 0 (see home)
Ã,  on homeÃ,  Ã,  Ã,  - number of pieces already removed from the board by player
+ on homeÃ,  Ã,  Ã,  - same for opponent
Ã,  on barÃ,  Ã,  Ã,   - number of player's pieces on the bar
+ on barÃ,  Ã,  Ã,   - same for opponent
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,   can move. This token is valid if it's your turn and you
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,   have already rolled.
Ã,  did crawford - don't use this token
+ redoublesÃ,  Ã,  - maximum number of instant redoubles in unlimited matches
SEE ALSO
Ã,  board, boardstyle
Hmm. Why that "did crawford - don't use this token"?

With this information, I think, you can see, if it's the Crawford game:Is that the solution?

Greetings
amarganth
Title: The Crawford Game
Post by: cthulhu on April 30, 2004, 08:31:33 PM
QuoteWith this information, I think, you can see, if it's the Crawford game:

    * if both players have toggle crawford yes
    * if one of the players have a matchscore of (matchlen-1)
    * if both players cannot double (rawbord maydouble = 0)
    * if the cube value is 1

I cannot tell if the opponent has toggled crawford with the toggle command. It only tells if you have. And I also know that the leading person is able to double during a crawford game on FIBS, so that information is unfortunately not enough. Atm I don't even know if the rawboard sets the maydouble flag to 0 during a crawford game either.
Title: The Crawford Game
Post by: purol on May 01, 2004, 04:59:10 PM
Hi Amarganth,


if that's an authentic Rietveld chair in your avatar,
it is worth A LOT of money ;-)


 -- purol
Title: The Crawford Game
Post by: amarganth on May 02, 2004, 08:11:48 AM
I've made two of them by hand, purol.  
They're nicer than the originals!
;)

Talk to me at FIBS or by E-Mail, if you like to know more.
Title: The Crawford Game
Post by: Chris on January 20, 2005, 09:48:09 PM
QuoteHmm. Why that "did crawford - don't use this token"?

I don't know why one shouldn't use this token ...
I have noticed that this token equals "1" in every postcrawford game and equals "0" in the whole rest, that means in precrawford games and in the crawford game itself.

Regards, Chris