Skip to content

Instantly share code, notes, and snippets.

import numpy as np
class NeuralNetwork():
def __init__(self, inputs):
np.random.seed(1)
# Set synaptic weights to a 3x1 matrix,
# with values from -1 to 1 and mean 0
from __future__ import print_function
import keras
from keras.datasets import cifar10
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Conv2D, MaxPooling2D
import os
batch_size = 32
from pynput.keyboard import Key, Controller
import time
keyboard = Controller()
while True:
text = input("text:")
time.sleep(1)
for char in text:
keyboard.press(char)
weakest_enemies=0
WEAKEST_ENEMIES_LIST_LENGTH = 5
def find_strongest_allies(pw, x):
strongList = list()
i = 0
if x > len(pw.enemy_planets()):
x = len(pw.enemy_planets())
while i < x: