Skip to content

Instantly share code, notes, and snippets.

import math
from selenium import webdriver
from multiprocessing import Process, Lock, Array, Value
from multiprocessing.dummy import Pool as ThreadPool
maxX = 150
maxY = 150
steps = [8, 23, 38, 53, 68, 83, 98, 113, 128, 143]
@A-w-K
A-w-K / forty_game_controller.py
Created December 20, 2018 12:47
added some more statistics to final output
import random
import sys
# Importing all the bots
from forty_game_bots import *
# Class for handling the game logic and relaying information to the bots
class Controller:
def __init__(self, bots_per_game, games, bots):
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff.Mode;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;