refactor logic, changed naming for variables and added the formula for findX

This commit is contained in:
Kostya
2024-01-21 12:00:06 +03:00
parent 75da63a13b
commit d9d798397b

View File

@@ -227,8 +227,9 @@ export default {
const X_Cordinates = value[this.gamesCircle]
if (X_Cordinates >= 5) {
const findX = Math.ceil(X_Cordinates / 5) * 5
const findY = Math.ceil(findX / 5)
const findIndex = Math.ceil(X_Cordinates / 5) * 5
const findY = Math.ceil(findIndex / 5)
const findX = findIndex % 5
console.log(findX, findY)
}