Skip to content

Instantly share code, notes, and snippets.

View oscarcs's full-sized avatar
🌇

Oscar Sims oscarcs

🌇
View GitHub Profile
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
{
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);