This file contains hidden or 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
| from __future__ import print_function | |
| from builtins import range | |
| import itertools | |
| import MalmoPython | |
| import json | |
| import logging | |
| import math | |
| import os | |
| import random | |
| import sys |
This file contains hidden or 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
| { | |
| timeChanged: function() { | |
| this.timeHours = this.claim.Time.split(':')[0]; | |
| this.timeMinutes = this.claim.Time.split(':')[1].split(' ')[0]; | |
| this.timeOfDay = this.claim.Time.split(' ')[1]; | |
| console.log(this.timeHours, this.timeMinutes, this.timeOfDay); | |
| }, | |
| timeEdited: function() { | |
| let hours = parseInt(this.timeHours); |
OlderNewer