Re: [Scidvspc-devel] Patch2: MultiPV traffic lights for boards, inturn Enabled for Analysis Board
Chess Database and Toolkit program
Brought to you by:
stevenaaus
From: C H. M. <han...@gm...> - 2024-12-26 18:42:15
|
Hi, The last version of the patch was not symmetrical across 0. Also yellow wasn't exactly at eval 0, it was off by 0.4 or so. Also given that Tk doesnt seem to support color transparency wrt canvas operations, So I have redone the eval to color mapping logic to be simpler (built around changing R and G channels through and through) as well as centered to yellow at 0 and in turn symmetrical across 0, but with red to one side and green to the other. Attaching the patch wrt same. This should make the traffic color lighting properly mapped to the eval it is representing in a fine grained manner. On Thu, Dec 26, 2024 at 7:53 PM C Hanish Menon <han...@gm...> wrote: > > Hi, > > This is an updated version of the MultiPV TrafficLights patch, which > transitions the colors from Green (towards 5) to yellow (1.5 to -1.5) > to Red (towards -5) in a relatively more smoother interconnected way > compared to the previous patch. > > Have also attached a screenshot, which shows the newer coloring in > comparison to the prev logic. > > > On Thu, Dec 26, 2024 at 5:31 PM C Hanish Menon <han...@gm...> wrote: > > > > Hi Steve, > > > > The MultiPV-TrafficLights divides a single bar into multiple blocks > > based on the number of PVs in the multipv and inturn paints each block > > within it based on the score wrt the corresponding pv. Thus a single > > multicolor (if needed) bar, giving a summary status wrt all PVs in the > > MultiPVs in one go. > > > > In the image which you attached, because all the 4 PVs have similar > > scores around 0, the full bar is yellow. The PV1 disappearing is more > > of the separate eval bar, which is independent of the > > multipv-trafficlights and which is disappearing for some reason on > > your mac, which you are using. On linux I can see both the eval bar as > > well as the multipv trafficlights bar. I will check if the > > disappearing eval bar issue is there on windows (wsl). > > > > I am also attaching the image of a position, where all 3 colors and > > shades are there, bcas what will be the next move will decide whether > > the game will move/tend towards an advantageous position or balance or > > losing position. > > > > On Thu, Dec 26, 2024 at 9:52 AM Steve A <ste...@gm...> wrote: > > > > > > Hmmm. Just doesnt work on my mac. (I'll test it out later on my linux box., so sorry for being lazy) > > > PV1 is always disappearing, and only yellow shows up. > > > Pic attached > > > > > > I know knowing how sharp a line is is desirable, but i'm not sure traffic lights are the best solution. > > > > > > > > > > > > On Thu, Dec 26, 2024 at 9:58 AM C Hanish Menon <han...@gm...> wrote: > > >> > > >> Hi, > > >> > > >> Eval bar gives position score wrt the main pv only, while with the > > >> faster comps and engines and thus in turn multipv, there is additional > > >> info like how good or bad or tricky a position is etc. > > >> > > >> Inturn to show the same to user in a simple and straightforward way, > > >> have added generic support for a additional bar next to eval bar, > > >> which shows the scores wrt all the PVs in a MultiPV in terms of > > >> Red-Yellow-Green traffic light summary wrt each PV, next to one > > >> another. So by looking at the color pattern one can get a quick hint > > >> has to whether the position is good or bad for white or black and also > > >> how sharp or not the position may be and so. > > >> > > >> The same is enabled for AnalysisBoard, which will be driven from the > > >> corresponding engine's MultiPV. > > >> > > >> > > >> On Thu, Dec 26, 2024 at 5:13 AM C Hanish Menon <han...@gm...> wrote: > > >> > > > >> > Hi, > > >> > > > >> > This patch adds generic support for showing eval bar wrt any specified > > >> > board. Inturn the same is enabled for analysis boards and the main > > >> > pv's score is shown as the evalbar. > > >> > > > >> > Have implemented two different versions of eval bar, one is a simple > > >> > linear one and another is a combination of linear+logarithmic one. > > >> > > > >> > The simple linear version shows the eval bar linearly wrt -4 to 4 with > > >> > clipping of values beyond it > > >> > > > >> > The linear+log version shows a linear movement wrt -1 to 1 which maps > > >> > to being adjacent to the 4 and 5 rows, and a logarithmic movement for > > >> > beyond. The log values are mapped such that crossing 3 and 6 rows map > > >> > to be equivalent to gaining or losing a minor piece and 2 and 7 rows > > >> > map to gaining or losing 10 points, and remaining beyond. > > >> > > > >> > Currently I havent tried to enable this for MainBoard. As one may want > > >> > to add an option entry to menu or buttons bar or ... > > >> > > > >> > -- > > >> > Keep ;-) > > >> > HanishKVC > > >> > > >> > > >> > > >> -- > > >> Keep ;-) > > >> HanishKVC > > > > > > > > -- > > Keep ;-) > > HanishKVC > > > > -- > Keep ;-) > HanishKVC -- Keep ;-) HanishKVC |