Пример #1
0
import time
import Reversi
import HashMap
import random
import sys
from playerInterface import *


BOARDSIZE = 8
SEED = 13459
HASHSIZE = 100000
hashTable = HashMap.HashTable(HASHSIZE)
DEADLINE = round(time.time()*1000) + 1000*60*5

class thePunisher(PlayerInterface):

    def __init__(self):
        self._board = Reversi.Board(10)
        self._mycolor = None
        self._name = "The Punisher"
        self._startFlag = 0
        self.deadline = 9999
        self._eval = [[35,-4,0,12,10,10,12,0,-4,35],
                       [-4,-6,1,1,1,1,1,1,-6,-4],
                       [0,0,1,1,1,1,1,1,0,0],
                       [12,1,1,4,3,3,4,1,1,12],
                       [10,1,1,3,2,2,3,1,1,10],
                       [10,1,1,3,2,2,3,1,1,10],
                       [12,1,1,4,3,3,4,1,1,12],
                       [0,0,1,1,1,1,1,1,0,0],
                       [-6,-8,1,1,1,1,1,1,-8,-6],