Lizzie v0.5+ Sgf Variation, Comment, Multiple Heights, Custom Theme etc.
Pre-releaseLizzie v0.5+ Sgf Variation, Comment, Multiple Heights etc.
This Pre-release is a beta version before related pull request is accepted.
-- updated in 2018-11-09: Final update! The new version 0.6 already released.
Try adding some new features based on Lizzie 0.5: (:heavy_check_mark: - Accepted, :clock9: - Reviewing)
- ✔️ Support for displaying Sgf comments: press key 'T' to toggle
- ✔️ Support read and write the Sgf with variations and more properties (TR, SQ, CR, MA, LB, MN and AW/AB/AE of Move)
- ✔️ Support switch multiple engine heights
- ✔️ Support for custom theme and font, update new board and background
- ✔️ Support save the (height/playouts)winrate(lastmoverate) into the comment of Sgf (need turn on "append-winrate-to-comment" in the config.txt)
- ✔️ Support only display last move number: press key 'M' to toggle
- ✔️ Support use mouse click to navigate in variation graph
- ✔️ Support blunder bar in the winrate graph: press key Ctrl+W to toggle large winrate graph
- ✔️ Support new key shortcut: Ctrl+Left (To branch top), Ctrl+Shit+Up/Done(To previous/next node with comment), Press Ctrl+Home to clear board
- ✔️ Support use different color to indicate move node in variation graph: press key Ctrl+T to toggle comment node
- ✔️ Enhance the variation graph display
- ✔️ Fixed wrong winrate when playing a handicap game
- ✔️ Fixed: Display latest stone for ghost dead stone
- ✔️ Fixed some display issues
- ✔️ Support detect the sgf/gib file encoding
- 🕘 Support replay branch when press key 'R', replay interval by option 'replay-branch-interval-seconds' by @phiming
- ✔️ Support new move number in the branch, toggle by option 'new-move-number-in-branch'
- ✔️ Allow user turn on/off the border by option 'show-border', default is turn off. New theme 'yasnaya' by @ParmuzinAlexander
- 🕘 Press '[' and ']' to adjust the main board position by @phiming
New Theme 'yasnaya' by @ParmuzinAlexander
Custom Theme (Like Sabaki for testing, because I very like this UI)
Changelog:
-
✔️ Support for displaying Sgf comments: press key 'T' to toggle
Default is close, can press key 'T' to toggle.
The comment font size fits to window (minimum=16), and also allow set up the comment font size in the config.txt (in the 'ui' section):
"ui": {
"show-comment": true,
"comment-font-size": 24, -
✔️ Support read and write the Sgf with variations and more properties (TR, SQ, CR, MA, LB, MN and AW/AB/AE of Move)
-
✔️ Support switch multiple engine heights
a) in the config.txt file, add a option (engine-command-list) to add some new command lines:
"engine-command": "./leelaz --gtp --lagbuffer 0 --weights %network-file --threads 2",
"engine-command-list": [
"./leelaz --gtp --lagbuffer 0 --weights leelaz_172_b1c --threads 2",
"./leelaz --gtp --lagbuffer 0 --weights human_best --threads 2",
"./leelaz --gtp --lagbuffer 0 --weights elf_1_62b --threads 2",
"./leelaz --gtp --lagbuffer 0 --weights leelaz_157_d35 --threads 2"
],b) Use the shortcut key Ctrl+number to switch the weight and display the weight name in the left down:
Ctrl+0: Default switch to "engine-command"
Ctrl+(1-9): Switch to "engine-command-list"c) If the current node is in Branch, it also supports keeping the current node when switching weights.
-
✔️ Support for custom theme and font, update new board and background
Now add a new way to customize the theme by external images, setup font & color of the comment.
The configuration method is as following:- Change the 'theme' value to specify your theme name:
"theme": "",
for example:
"theme": "mylike", - Create subfolders in the lizzie folder
/theme/
for example:
/theme/mylike - The custom-theme folder must include the config file 'theme.txt', the format as followings(use default when option not be specified):
PS: following option can directly be specified in the config.txt file.
{
"background-image" : "background.png",
"board-image" : "board.png",
"black-stone-image" : "black.png",
"white-stone-image" : "white.png",
"font-name": "Wawati SC",
"ui-font-name": "Wawati SC",
"winrate-font-name": "Wawati SC Bold",
"shadow-size": 100,
"solid-stone-indicator": true,
"winrate-stroke-width": 2,
"minimum-blunder-bar-width": 3,
"comment-background-color": [0, 0, 0, 200],
"comment-font-color": [255, 255, 255],
"winrate-line-color": [0, 255, 0],
"winrate-miss-line-color": [0, 0, 255, 200],
"blunder-bar-color": [255, 0, 0, 200]
} - Will use default theme when not found related config item.
- Run the Lizzie.
- Change the 'theme' value to specify your theme name:
-
✔️ Support save the winrate etc. into the comment of Sgf (need turn on "append-winrate-to-comment" in the config.txt)
format as followings:
Move <move number>
<Winrate> (<Last Move Rate Difference>)
(<Weight name> / <Playouts>)for example:
W[dd]C[Move 2
53.5% (-0.1%)
(elf_v1 / 18k playouts)other comments];
-
✔️ Support only display last move number: press key 'M' to toggle
Use 'only-last-move-number' to specify the last move number you want to display only:
"only-last-move-number": 10,When press key 'M' the status will switching as followings:
Off -> Display all move number -> Display last move number if specified -> Off -
✔️ Support use mouse click to navigate in variation graph
-
✔️ Support blunder bar in the winrate graph: press key Ctrl+W to toggle large winrate graph
- Add new option 'show-blunder-bar' in the config.txt to turn on blunder bar, default is turn off.
- Can specify the minimum width of the blunder bar by the option 'minimum-winrate-blunder-bar-width' in the config.txt, default is 3.
- Considering that the winrate change should be mostly below 50%, an option is added to weighted display the height of the bar, that is, the change below 50% increases the display height, and the above 50% reduces the height. Currently only a simple weighted, the winrate change below 50% uses 75% of the display area, the above uses 25% of the display area. The default is off
Adjusted for the green of the winrate graph should always be on top:
4. Due to the small width of the winrate graph, when the move number is large, the display is crowded, so an option 'dynamic-winrate-graph-width' is added to dynamically adjust the width, so that can see clearly when the number of steps is small. Default is turn off.
5. Add new option 'winrate-stroke-width' in the config.txt to set the winrate line width, default is 3
6. Add large winrate mode, press Ctrl+W to toggle:
-
✔️ Support new key shortcut:
Ctrl+Left: To branch top
Ctrl+Shit+Up/Done: To previous/next node with comment -
✔️ Support use different color to indicate move node in variation graph: press key Ctrl+T to toggle comment node, Press key 'Y' to switch color node display
Config:
"blunder-winrate-thresholds": [-30,-20,-10,-5,5,10],
"blunder-node-colors":[[255,0,0],[0,255,0],[0,0,255],[255,255,0],[0,255,255],[255,0,255]],
With comment node: press Ctrl+T to toggle show
Press 'Y' to switch node color:
All color -> only black -> only white
-
✔️ Enhance the variation graph display
-
✔️ Fixed wrong winrate when playing a handicap game
-
✔️ Fixed: Display latest stone for ghost dead stone
-
✔️ Fixed some display issues