This is a fork of the original Bridge Solver Online authored by John Goacher (https://mirgo2.co.uk/bridgesolver/)
Code has been split into several files:
- Function definitions into
functions.js - Events into
events.js - Help text into
helpText.js - Inline javascript moved into the respective files
- Upgraded jQuery to
jquery-4.0.0.min.js - Main functionalities remain in
ddummy6.js
To allow text (help text and display text) to appear in other languages the following concept has been applied:
- A language switcher has been created (
changeLanguage()). Whereever possible displayed text is piped through this function - Added flags on the frontpage to allow the switch of language
- Currently English and German are implemented
- The default language is defined in
ddummy6.js(e.g. language="en"). Language codes follow the 2-character code (e.g. en, de)
Inline Styles have been removed and added to the respective style sheet
HTML has been corrected to comply with W3C standards.
The frontpage has been changed such that navigational buttons are visible at all times.
A URL parameter has been introduced to turn off the navigational buttons.
Hands can be entered and analyzed in various ways:
- Choosing a local file by clicking the respective button on the frontpage
- Dropping a file onto the area on the frontpage covering the buttons
- Paste (CTRL-V on Windows/Linux, CMD-V on Mac) on the frontpage
- Using the respective button on the frontpage to retrieve data from the clipboard
- Manual input of single hands by using the respective button on the frontpage
- Loading a remote file via an URL parameter (e.g.
?file=https://example.com/tournament.pbn)). The remote server has to allow loading data via HTTP headerHeader set Access-Control-Allow-Origin *or specificallyHeader set Access-Control-Allow-Origin "https://thedomain.com". - Board data can be provided completely with URL paramters
- For an overview of all available URL parameters see the file
URL-Parameters.html
Supported file formats:
- .pbn
- .dlm
- .lin (BBO play and hand record files)
The [Result section of a .pbn file can optionally contain plain text enclosed in curly brackets.
If present the text contained within is displayed at the bottom of the respective board in a highlighted box.
The text may contain HTML markup for styling purposes.
Boards are analyzed using the double dummy solver authored by Bo Haglund / Sören Hein and implemented as a WebAssembly module. The analysis runs completely in the browser (no server component necessary).
The provided version is based on the DDS3 project (https://github.com/dds-bridge/dds) currently using the released version 3.1.
The sources for the WebAssembly module can be downloaded from here: https://github.com/krtschil/bsol-wasm/releases