BBO Discussion Forums: New Forum Software - BBO Discussion Forums

Jump to content

  • 5 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • You cannot start a new topic
  • You cannot reply to this topic

New Forum Software

#61 User is offline   inquiry 

  • PipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 14,566
  • Joined: 2003-February-13
  • Gender:Male
  • Location:Amelia Island, FL
  • Interests:Bridge, what else?

Posted 2004-February-24, 11:33

Part of the neat thing about this Lin2BF program is the layout of the auction. It really isn't that hard to input hands (although the automated process is nice), but lining up auctions is a pain. I wonder if we could get an auction button like the hand buttons... maybe the default should be always print auction results starting wtih WEST, but if the DEALER was selected, it would enter -- for bids WEST if north bid, and -- for WEST and norht if east bids, etc.

Maybe with East the dealer, the input format might be something like P1N2S3CP3HXXXPPP... and the output look like this (program knows where first bid goes)...
West North East
Spoiler
South
Spoiler
--
Spoiler
--
Spoiler
1N
Spoiler
2
Spoiler
3
Spoiler
Pass
Spoiler
3
Spoiler
Pass
Rdbl
Spoiler
Pass
Spoiler
Pass
Spoiler
Pass

As pretty much a nonprogrammer.. i feel free to suggest any wacky thing... :-)

Ben
--Ben--

#62 User is offline   Erkson 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 258
  • Joined: 2003-May-24

Posted 2004-February-24, 11:38

inquiry, on Feb 24 2004, 04:32 PM, said:

I don't know who misho's best friend is, but if you send the d version to me, I will forward to him for you. lol....

:) B) B)

17:11 GMT I sent you the 03d version.
I sent it to Misho also.

As I don't know how to send files to Gerardo, perhaps you will be able to send him a copy.

Erkson
0

#63 User is offline   Erkson 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 258
  • Joined: 2003-May-24

Posted 2004-February-24, 11:39

Gerardo, on Feb 24 2004, 05:02 PM, said:

Please count me in.

You will soon receive a copy of v.03d.

The program only converts history.lin files (NOT movie.lin files).

You know that auction is not coded the same way in a history.lin :

mb|1H|mb|1S|mb|2N!|an|9-12p 4+!h|mb|4S|mb|5C|mb|p|mb|5H|
mb|d|mb|r|mb|p|mb|p|mb|p|

and a movie.lin :

mb|---1H2C4H5Cdrppp|

The coding of hands is also completely different :

in a history.lin :

md|2S679THQD78AC237JQ,S2H59TKAD49QC469A,S35JQAH28JD36JC8T,|

in a movie.lin :

md|1S3HJ76432DAQ32CA3,SA2HAQ9D4CQJ96542,SKJT9875HT85D97C7,SQ64HKDKJT865CKT8|

Erkson
0

#64 User is offline   mishovnbg 

  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 769
  • Joined: 2003-February-14
  • Location:Bulgaria, Varna
  • Interests:Bridge - new bidding systems, psyches; Computers - education, service, program; Computer games great fan :-)

Posted 2004-February-24, 11:44

Thank you very much, can I help you with something too? Misho
MishoVnBg
0

#65 User is offline   Erkson 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 258
  • Joined: 2003-May-24

Posted 2004-February-24, 11:47

inquiry, on Feb 24 2004, 05:33 PM, said:

I wonder if we could get an auction button like the hand buttons...

A table with colums and rows would be nice.

A tag for the hard space (=#1 6 0) could be a more simple substitute and allow a good lining-up.

Erkson
0

#66 User is offline   Cascade 

  • PipPipPipPipPipPipPipPip
  • Group: Yellows
  • Posts: 6,759
  • Joined: 2003-July-22
  • Gender:Male
  • Location:New Zealand
  • Interests:Juggling, Unicycling

Posted 2004-February-24, 14:12

Erkson, on Feb 24 2004, 02:47 PM, said:

inquiry, on Feb 24 2004, 05:33 PM, said:

I wonder if we could get an auction button like the hand buttons...

A table with colums and rows would be nice.

A tag for the hard space (=#1 6 0) could be a more simple substitute and allow a good lining-up.

Erkson

How exactly do I put one of these hard spaces into a post?

Can I write one directly in here?

TIA

Wayne
Wayne Burrows

I believe that the USA currently hold only the World Championship For People Who Still Bid Like Your Auntie Gladys - dburn
dunno how to play 4 card majors - JLOGIC
True but I know Standard American and what better reason could I have for playing Precision? - Hideous Hog
Bidding is an estimation of probabilities SJ Simon

#67 User is offline   inquiry 

  • PipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 14,566
  • Joined: 2003-February-13
  • Gender:Male
  • Location:Amelia Island, FL
  • Interests:Bridge, what else?

Posted 2004-February-24, 16:44

Cascade, on Feb 24 2004, 03:12 PM, said:

How exactly do I put one of these hard spaces into a post?

What Erkson has discovered is that you need six characters to insert a single hard space. These are in sequence

&
#
1
6
0
;

Don't forget that semicolon at the end... when you put it all together it will look like this, but without the space between the semicolon and the 0 &#160 ;, so for instance
1&#160 ;&#160 ;&#160 ;, 1 (without the space between 0 and ;

looks like this...
1   1 rather than 1 1

Ben
--Ben--

#68 User is offline   Erkson 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 258
  • Joined: 2003-May-24

Posted 2004-February-24, 22:56

inquiry, on Feb 24 2004, 10:44 PM, said:

Don't forget that semicolon at the end... when you put it all together it will look like this, but without the space between the semicolon and the 0  &#160 ;, so for instance
1&#160 ;&#160 ;&#160 ;, 1 (without the space between 0 and ;

looks like this...
1   1 rather than 1 1

Ben

On Ben's post we can see the limits of the trick : three hard spaces are narrower than three letters of "looks like" which is above, and the lining-up is not perfect.
That is caused by the proportional font used here.
I amplify the problem with this sample where I wrote 6 hard spaces :
AAAAAAAAAAAA
1      1
Their total width corresponds to only three A.

By the way : look at what is displayed by : 1&spades 1&hearts if you complete each code with the required ;. You will get :
1♠ 1♥

One more thing : I wonder if it would be useful to write a Lin2BF converter for movie.lin files. I don't know if movie.lin files are used as a source for posting hands. I never had to. I use history.lin from \myhands.

Erkson
0

#69 User is offline   Cascade 

  • PipPipPipPipPipPipPipPip
  • Group: Yellows
  • Posts: 6,759
  • Joined: 2003-July-22
  • Gender:Male
  • Location:New Zealand
  • Interests:Juggling, Unicycling

Posted 2004-February-25, 00:56

I will double check later ...

but I think I have a Lin2Txt program that works with movies.lin files.

It will be easy to adapt that to write forum hands in fact I started last night ...

I just never checked what the source file is but I am pretty sure I use the movie files saved on my machine.

Wayne
Wayne Burrows

I believe that the USA currently hold only the World Championship For People Who Still Bid Like Your Auntie Gladys - dburn
dunno how to play 4 card majors - JLOGIC
True but I know Standard American and what better reason could I have for playing Precision? - Hideous Hog
Bidding is an estimation of probabilities SJ Simon

#70 User is offline   Erkson 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 258
  • Joined: 2003-May-24

Posted 2004-February-25, 05:55

Cascade, on Feb 25 2004, 06:56 AM, said:

I will double check later ...

but I think I have a Lin2Txt program that works with movies.lin files. 

It will be easy to adapt that to write forum hands in fact I started last night ...

I just never checked what the source file is but I am pretty sure I use the movie files saved on my machine.

Wayne

Hi, Wayne.

Version 01 of my Movie2B(bo)F(orum) is ready.

When you finish yours, we will compare !

Erkson
0

#71 User is offline   Cascade 

  • PipPipPipPipPipPipPipPip
  • Group: Yellows
  • Posts: 6,759
  • Joined: 2003-July-22
  • Gender:Male
  • Location:New Zealand
  • Interests:Juggling, Unicycling

Posted 2004-February-26, 22:57

This is the forum hands I generated automatically:

Scoring: IMP


West North East South

 Pass  2!   Pass  2
 Pass  3    Pass  4
 Pass  Pass  Pass  

Scoring: IMP


West North East South

 Pass  Pass  1    1
 Dbl   Pass  2    Pass
 3    Pass  Pass  Pass

These come from this lin file:

vg|Bridge Base Online,IMP Pairs,P,1,2,,,,|
rs|4HS-1,,3HS=,|
pw|Walddk,tsanders,ghinze,clarsen,,,,|
mp|,7.1,0.2,|
bn|12,13|
pg||
qx|o1|pn|Walddk,tsanders,ghinze,clarsen|st||md|2S8QAH579TQD3AC57A,S679TKH346JDTKC3Q,S25H8AD45789JQC6T,|rh||ah|Board 12|sv|n|mb|p|mb|2D!|an|since we didnt talk|mb|p|mb|2H|mb|p|mb|3H|mb|p|mb|4H|mb|p|mb|p|mb|p|pg||pc|S9|pc|S2|pc|SJ|pc|SQ|pg||pc|C5|pc|CQ|pc|C6|pc|C9|pg||pc|SK|pc|S5|pc|S4|pc|SA|pg||pc|CA|pc|C3|pc|CT|pc|C2|pg||pc|C7|pc|S6|pc|H8|pc|C4|pg||pc|DQ|pc|D6|pc|DA|pc|DT|pg||pc|S8|pc|ST|pc|HA|pc|S3|pg||pc|D4|pc|D2|pc|D3|pc|DK|pg||pc|S7|pc|D5|pc|C8|pc|H5|pg||pc|HQ|pc|H3|pc|D7|pc|HK|pg||pc|CJ|mc|9|pg||
qx|o2|pn|Walddk,tsanders,ghinze,clarsen|st||md|3S39H34568KD3AC3TA,S678TQKH9AD67C47J,S25AH2JD2TJQC269K,|rh||ah|Board 13|sv|b|mb|p|mb|p|mb|1H|mb|1S|mb|d|mb|p|mb|2H|mb|p|mb|3H|mb|p|mb|p|mb|p|pg||pc|SK|pc|S2|pc|S4|pc|S3|pg||pc|D7|pc|DQ|pc|D4|pc|D3|pg||pc|SA|pc|SJ|pc|S9|pc|SQ|pg||pc|S5|pc|D5|pc|H3|pc|S6|pg||pc|H4|pc|H9|pc|HJ|pc|HQ|pg||pc|D8|pc|DA|pc|D6|pc|D2|pg||pc|C3|pc|C4|pc|CK|pc|C5|pg||pc|H2|pc|H7|pc|H8|pc|HA|pg||pc|ST|pc|C2|pc|D9|mc|9|pg||


Wayne
 
Wayne Burrows

I believe that the USA currently hold only the World Championship For People Who Still Bid Like Your Auntie Gladys - dburn
dunno how to play 4 card majors - JLOGIC
True but I know Standard American and what better reason could I have for playing Precision? - Hideous Hog
Bidding is an estimation of probabilities SJ Simon

#72 User is offline   Erkson 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 258
  • Joined: 2003-May-24

Posted 2004-February-27, 01:22

Cascade, on Feb 27 2004, 04:57 AM, said:

This is the forum hands I generated automatically...

Good work, Wayne !

Do you agree to exchange sources ? I would like to read yours. I am sure I will learn from it.

Your .lin file is a movie lin file that I call a "vugraph file".

There are (at least) two other kinds of .lin files :
1. history.lin produced by \myhands (single deal)
2. movie.lin produced by the MOVIE button (single deal, too)

The three are not exactly identical, as I explained in an anterior post.

My Lin2PB works for history.lin (single deal)
and my Movie2PB works for movie.lin (single deal).

About the auction lining-up :

West North East South

Pass 2♦! Pass 2♥
Pass 3♥ Pass 4♥
Pass Pass Pass

you chose a narrow spacing between words West, North, East, South (one character), so the imperfect lining-up caused by proportional font is reduced, but it still exits. There is nothing simple that we can do to avoid it.

Erkson
0

#73 User is offline   Cascade 

  • PipPipPipPipPipPipPipPip
  • Group: Yellows
  • Posts: 6,759
  • Joined: 2003-July-22
  • Gender:Male
  • Location:New Zealand
  • Interests:Juggling, Unicycling

Posted 2004-February-27, 04:35

I am not a trained programmer.

My code is brute force and ignorance.

But sure you can look at it.

I will tidy it up a little and then send it to you. I am nearly finished adding functionality fo the other hand diagram buttons.

Actually there was a error in the code that I have now fixed.

The proportional font issue is a much bigger problem. There is a courier font available. There is still a problem with that FONT as the images are a fixed size. Is it possible to change their size.

Any ideas?

Here is the courier font example

Scoring: IMP


West North East South

                   Pass
 2!   Pass  2    Pass
 3    Pass  4    Pass
 Pass  Pass  

Scoring: IMP


West North East South

 Pass  Pass  1    1
 Dbl   Pass  2    Pass
 3    Pass  Pass  Pass
 


Wayne
Wayne Burrows

I believe that the USA currently hold only the World Championship For People Who Still Bid Like Your Auntie Gladys - dburn
dunno how to play 4 card majors - JLOGIC
True but I know Standard American and what better reason could I have for playing Precision? - Hideous Hog
Bidding is an estimation of probabilities SJ Simon

#74 User is offline   Erkson 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 258
  • Joined: 2003-May-24

Posted 2004-February-27, 06:01

Cascade, on Feb 27 2004, 10:35 AM, said:

The proportional font issue is a much bigger problem.  There is a courier font available.  There is still a problem with that FONT as the images are a fixed size.  Is it possible to change their size.

Any ideas?


Hi, Wayne.

at 11:20 GMT I sent you my sources and .exe.
I will be happy to receive yours.

About the lining-up I don't see any solution. Anyway, the lag is small, especially choosing a narrow spacing as you did.

Erkson
0

#75 User is offline   Cascade 

  • PipPipPipPipPipPipPipPip
  • Group: Yellows
  • Posts: 6,759
  • Joined: 2003-July-22
  • Gender:Male
  • Location:New Zealand
  • Interests:Juggling, Unicycling

Posted 2004-February-27, 15:05

Erkson I have sent you a copy of my code.

You get slightly better alignment when you use the {FONT=Courier} tag. But there are still minor problems. I think they are caused by suit symbol images being different sizes.

A table tag would be ideal.

Wayne

West North East South

 Pass  2!   Pass  2
 Pass  3    Pass  4
 Pass  Pass  Pass  


West North East South

 Pass  2!   Pass  2
 Pass  3    Pass  4
 Pass  Pass  Pass  


Maybe the alignment isn't better with courier.

That is weird that the diamond symbol is a different size when I use Courier font.
Wayne Burrows

I believe that the USA currently hold only the World Championship For People Who Still Bid Like Your Auntie Gladys - dburn
dunno how to play 4 card majors - JLOGIC
True but I know Standard American and what better reason could I have for playing Precision? - Hideous Hog
Bidding is an estimation of probabilities SJ Simon

#76 User is offline   Erkson 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 258
  • Joined: 2003-May-24

Posted 2004-February-27, 22:56

Hi, Wayne, and many thanks for your software and sources.

Quote

Erkson I have sent you a copy of my code. 

It is better than mine. I appreciate the Windows GUI, and I adopt it !
Please, add me on your list for updates.

Quote

You get slightly better alignment when you use the {FONT=Courier} tag.  But there are still minor problems.  I think they are caused by suit symbol images being different sizes.

A table tag would be ideal.

I do agree with you.

Anyway, we have now a good tool to publish deals on this forum.
One problem remains : to deal with at least three different .lin file types.

Erkson
0

#77 User is offline   Cascade 

  • PipPipPipPipPipPipPipPip
  • Group: Yellows
  • Posts: 6,759
  • Joined: 2003-July-22
  • Gender:Male
  • Location:New Zealand
  • Interests:Juggling, Unicycling

Posted 2004-February-28, 00:03

I haven't looked at the details but I suspect something smart should be able to be programmed.

That is some code that automatically recognizes the format and deals with it.

Wayne
Wayne Burrows

I believe that the USA currently hold only the World Championship For People Who Still Bid Like Your Auntie Gladys - dburn
dunno how to play 4 card majors - JLOGIC
True but I know Standard American and what better reason could I have for playing Precision? - Hideous Hog
Bidding is an estimation of probabilities SJ Simon

#78 User is offline   Erkson 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 258
  • Joined: 2003-May-24

Posted 2004-February-28, 06:17

Cascade, on Feb 28 2004, 06:03 AM, said:

I haven't looked at the details but I suspect something smart should be able to be programmed.

That is some code that automatically recognizes the format and deals with it.

Wayne

Some simple infos :

A vugraph lin file begins with :
vg|
a movie.lin file with :
vg|Uploaded
a history.lin with :
pn|

Then :
- only vugraph says if IMP or MP
- vugraph and movie have a qx tag, but history hasn't
- vugraph and history have the same hand and auction notations, but movie has different

Modification of a program is easy to make it to read vugraph and history.lin because they are not very different.

It is a little bit harder to make it to read also movie.lin. But movie.lin hand notation is easier to manage : all 4 hands are there, and cards are in descendant order.

I wouldn't rush because when we finish a multi-lin program, maybe BBO has standardised the format :rolleyes:

Erkson
0

#79 User is offline   Cascade 

  • PipPipPipPipPipPipPipPip
  • Group: Yellows
  • Posts: 6,759
  • Joined: 2003-July-22
  • Gender:Male
  • Location:New Zealand
  • Interests:Juggling, Unicycling

Posted 2004-February-28, 13:25

Here is the output from the three file types with one program.

The program automatically detects the file type.

1.

movie.lin a movie created manually using the movie feature and saved to your hard disc.




West North East South

 -     -     -     1
 2    4    5    Dbl
 RDbl  Pass  Pass  Pass
 


2.

history.lin a file downloaded from myhands




West North East South

 -     -     1    Pass
 1NT!  Pass  2    Pass
 4    Pass  Pass  Pass
 



3.

logged_deal.lin a file logged on your computer as you play or watch a hand




West North East South

 -     Pass  Pass  1
 1    Dbl   Pass  2
 Pass  3    Pass  Pass
 Pass  




Questions:

Does anyone know if history.lin files store the scoring condition in any way?

I can probably look and find out for myself I guess.

I discovered while writing this post that hard spaces do not cut and paste very well from the post preview. They turn into soft spaces :-(

Wayne
Wayne Burrows

I believe that the USA currently hold only the World Championship For People Who Still Bid Like Your Auntie Gladys - dburn
dunno how to play 4 card majors - JLOGIC
True but I know Standard American and what better reason could I have for playing Precision? - Hideous Hog
Bidding is an estimation of probabilities SJ Simon

#80 User is offline   Cascade 

  • PipPipPipPipPipPipPipPip
  • Group: Yellows
  • Posts: 6,759
  • Joined: 2003-July-22
  • Gender:Male
  • Location:New Zealand
  • Interests:Juggling, Unicycling

Posted 2004-February-28, 19:26

I discovered a 4th type of lin file just now.

If I look at a movie from a played table and save that to my hard drive.

This file has some different characteristics.

I think I have updated the program to cope but I have not double checked that it still works with the previous file types.

Wayne
Wayne Burrows

I believe that the USA currently hold only the World Championship For People Who Still Bid Like Your Auntie Gladys - dburn
dunno how to play 4 card majors - JLOGIC
True but I know Standard American and what better reason could I have for playing Precision? - Hideous Hog
Bidding is an estimation of probabilities SJ Simon

  • 5 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users