fix: is_position_cost_lower missed a factor of 2 in one case. Thanks to oodarioo for spotting it!
1 files changed, 1 insertions(+), 1 deletions(-) M layout_base.py
M layout_base.py +1 -1
@@ 730,7 730,7 @@ def is_position_cost_lower(pos, new_pos, False """ # use tripled layer cost, because it ignores the additional bigrams. - new_cost = single_key_position_cost(new_pos, layout) + COST_LAYER_ADDITION[new_pos[2]] + new_cost = single_key_position_cost(new_pos, layout) + 2*COST_LAYER_ADDITION[new_pos[2]] cost = single_key_position_cost(pos, layout) + 2*COST_LAYER_ADDITION[pos[2]] return new_cost < cost