Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 1x 1x 1x 1x 2x 3x 1x 1x 1x 2x 3x 1x 1x 1x 2x 3x 1x | "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Clock3 = exports.Clock2 = exports.Clock1 = void 0; class Clock1 { constructor() { this.time = 0; } reset() { this.time = 0; } tick() { this.time++; } getTime() { return this.time; } } exports.Clock1 = Clock1; // counts down from 0 class Clock2 { constructor() { this.time = 0; } reset() { this.time = 0; } tick() { this.time--; } getTime() { return (0 - this.time); } } exports.Clock2 = Clock2; // counts from 42 class Clock3 { constructor() { this.time = 42; } reset() { this.time = 42; } // I originally put a 0 here :) tick() { this.time++; } getTime() { return this.time - 42; } } exports.Clock3 = Clock3; //# sourceMappingURL=clocks.js.map |