mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
refactor logic, changed naming for variables and added the formula for findX
This commit is contained in:
@@ -227,8 +227,9 @@ export default {
|
|||||||
const X_Cordinates = value[this.gamesCircle]
|
const X_Cordinates = value[this.gamesCircle]
|
||||||
|
|
||||||
if (X_Cordinates >= 5) {
|
if (X_Cordinates >= 5) {
|
||||||
const findX = Math.ceil(X_Cordinates / 5) * 5
|
const findIndex = Math.ceil(X_Cordinates / 5) * 5
|
||||||
const findY = Math.ceil(findX / 5)
|
const findY = Math.ceil(findIndex / 5)
|
||||||
|
const findX = findIndex % 5
|
||||||
console.log(findX, findY)
|
console.log(findX, findY)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user