Commit 7c050f14 authored by Joe's avatar Joe

fix bug

parent d574c651
......@@ -15,26 +15,26 @@ let Utils = {
let rrA = rA + k * (sA - eA)
// 加分高于16
if( (rrA - rA) > 16 ) {
rrA = rA + 16;
}
// 扣分低于8
if( (rA - rrA) < 8 ) {
rrA = rA - 8;
}
let rrB = rB + k * (sB - eB)
// 加分高于16
if( (rrB - rB) > 16 ) {
rrB = rB + 16;
}
// 扣分低于8
if( (rB - rrB) < 8 ) {
rrB = rB - 8;
}
// if( (rrA - rA) > 16 ) {
// rrA = rA + 16;
// }
// // 扣分低于8
// if( (rA - rrA) < 8 ) {
// rrA = rA - 8;
// }
// let rrB = rB + k * (sB - eB)
// // 加分高于16
// if( (rrB - rB) > 16 ) {
// rrB = rB + 16;
// }
// // 扣分低于8
// if( (rB - rrB) < 8 ) {
// rrB = rB - 8;
// }
return { ptA: rrA, ptB: rrB }
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment