This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''A tool to simplify writing solutions to programming puzzles''' | |
class Part: | |
def __init__(self): | |
self.output_buffer = [] | |
self.accumulator = 0 | |
def text(self, *text): | |
line = ' '.join([str(t) for t in text]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (canvas.tokens.controlled.length === 0) | |
ui.notifications.error("Please select a token"); | |
if (game.modules.get("about-time").active != true) | |
ui.notifications.error("About Time isn't loaded"); | |
let namedfields = (...fields) => { | |
return (...arr) => { | |
var obj = {}; | |
fields.forEach((field, index) => { |