Skip to main content
Syntax highlighting
Source Link
user
  • 387
  • 2
  • 21
  • 68

Sinus-oidal

module.exports = class {
    constructor(controller) {
        this.controller = controller;
    }
    
    play_hand() {
        var turn = this.controller.hand_number();
        var multiply = Math.sin(turn * Math.PI / 4);

        this.controller.declare(Math.floor(2 ** (multiply + 1)));
    }
};
module.exports = class {
    constructor(controller) {
        this.controller = controller;
    }
    
    play_hand() {
        var turn = this.controller.hand_number();
        var multiply = Math.sin(turn * Math.PI / 4);

        this.controller.declare(Math.floor(2 ** (multiply + 1)));
    }
};

Get it?

Sinus-oidal

module.exports = class {
    constructor(controller) {
        this.controller = controller;
    }
    
    play_hand() {
        var turn = this.controller.hand_number();
        var multiply = Math.sin(turn * Math.PI / 4);

        this.controller.declare(Math.floor(2 ** (multiply + 1)));
    }
};

Get it?

Sinus-oidal

module.exports = class {
    constructor(controller) {
        this.controller = controller;
    }
    
    play_hand() {
        var turn = this.controller.hand_number();
        var multiply = Math.sin(turn * Math.PI / 4);

        this.controller.declare(Math.floor(2 ** (multiply + 1)));
    }
};

Get it?

Source Link
rydwolf
  • 18.9k
  • 2
  • 83
  • 172

Sinus-oidal

module.exports = class {
    constructor(controller) {
        this.controller = controller;
    }
    
    play_hand() {
        var turn = this.controller.hand_number();
        var multiply = Math.sin(turn * Math.PI / 4);

        this.controller.declare(Math.floor(2 ** (multiply + 1)));
    }
};

Get it?