Skip to content

Commit

Permalink
scale cb counter at eval to column count
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Mar 4, 2019
1 parent 1fffcb1 commit cf0c5e7
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -574,13 +574,15 @@ function scoreBoard(pn, position)
if enabledCustomWindows then
tso = 1
end

local ncol = GAMESTATE:GetCurrentSteps(PLAYER_1):GetNumColumns() - 1 -- cpp indexing -mina
for i = 1, #devianceTable do
if math.abs(devianceTable[i]) > tso * 90 then
if tracks[i] == 0 or tracks[i] == 1 then
cbl = cbl + 1
else
cbr = cbr + 1
if tracks[i] then -- we dont load track data when reconstructing eval screen apparently so we have to nil check -mina
if math.abs(devianceTable[i]) > tso * 90 then
if tracks[i] <= math.floor(ncol/2) then -- just assume middle col in 7k is right hand thumb for now -mina
cbl = cbl + 1
else
cbr = cbr + 1
end
end
end
end
Expand Down

0 comments on commit cf0c5e7

Please sign in to comment.