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
import numpy as np | |
import mpl_toolkits.mplot3d.axes3d as p3 | |
import matplotlib.pyplot as plt | |
import colorsys | |
from PIL import Image | |
import sys | |
import csv | |
if sys.version_info[0] == 3: | |
xrange = range |
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
import os | |
import time | |
ship_requirement = 10 | |
damage_requirement = 1000 | |
def get_ships(data): | |
return int(data.split("producing ")[1].split(" ships")[0]) |
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
File "data-creator.py", line 37, in <module> | |
CharlesBot1_ships = get_ships(CharlesBot1) | |
File "data-creator.py", line 9, in get_ships | |
return int(data.split("producing ")[1].split(" ships")[0]) | |
IndexError: list index out of range |
NewerOlder