Skip to content

Instantly share code, notes, and snippets.

@rzvl
Created July 22, 2024 09:37
Show Gist options
  • Save rzvl/db7037f36cc2a9a94204c0c650f714d6 to your computer and use it in GitHub Desktop.
Save rzvl/db7037f36cc2a9a94204c0c650f714d6 to your computer and use it in GitHub Desktop.
HamsterChain Calculator
function calcProperties(p6) {
const p5 = Math.floor(p6 / 4.5);
const p4 = Math.floor(p5 / 4.5);
const p3 = Math.floor(p4 / 4.5);
const p2 = Math.floor(p3 / 4);
const p1 = Math.floor(p2 / 5);
console.log(p1.toLocaleString(), p2.toLocaleString(), p3.toLocaleString(), p4.toLocaleString(), p5.toLocaleString(), p6.toLocaleString())
}
function calcFoods(f6) {
const f5 = Math.floor(f6 / 3);
const f4 = Math.floor(f5 / 5.5);
const f3 = Math.floor(f4 / 5.8);
const f2 = Math.floor(f3 / 8);
const f1 = Math.floor(f2 / 10);
console.log(f1.toLocaleString(), f2.toLocaleString(), f3.toLocaleString(), f4.toLocaleString(), f5.toLocaleString(), f6.toLocaleString())
}
calcProperties(579024046)
calcFoods(26450000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment