// Sprawdźmy czy istnieje player.pointsif (!window.player) window.player = {};console.log("BigNumber system uruchomiony");// Prosta klasa BigNumberclass BigNumber { constructor(m, e) { this.m = m; // mantysa this.e = e; // wykładnik } multiply(n) { this.m *= n; while (this.m >= 10) { this.m /= 10; this.e += 1; } return this; } add(other) { if (this.e === other.e) { this.m += other.m; } else if (this.e > other.e) { this.m += other.m * Math.pow(10, other.e - this.e); } else {
I see you've shared a BigNumber class implementation in JavaScript that handles very large numbers with mantissa and exponent. This would be perfect for the incremental game we've been building, especially given the advanced mathematical notation (ee100, F308, FFee100, etc.).
However, the code appears to be incomplete - it cuts off in the middle of the add method.
Would you like me to:
Please let me know how you'd like me to proceed with this BigNumber system!
1
I'm ready to help! What would you like me to work on? Are you looking to:
Please let me know what you'd like me to build or modify.
This 1 one