diff --git a/luckydiamond/src/pages/games-pages/SapergamePage.vue b/luckydiamond/src/pages/games-pages/SapergamePage.vue index 324af74..787eaea 100644 --- a/luckydiamond/src/pages/games-pages/SapergamePage.vue +++ b/luckydiamond/src/pages/games-pages/SapergamePage.vue @@ -232,11 +232,11 @@ export default { if (X_Cordinates > 5) { findIndex = Math.ceil(X_Cordinates / 5) * 5 findY = Math.ceil(findIndex / 5) - 1 - findX = Math.ceil(X_Cordinates / 5 - 1) + findX = X_Cordinates - findIndex + 4 console.log(findX, findY) } else if (X_Cordinates <= 5) { - findX = X_Cordinates + findX = X_Cordinates - 1 findY = 1 }