5
# Copyright (C) 2005 Laurent Lacheny
7
# This program is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 2 of the License, or
10
# (at your option) any later version.
12
# This program is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with this program; if not, write to the Free Software
19
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
# This code comes from the project 4stattack
23
# http://forcedattack.sourceforge.net/
25
#########################################################################
27
#########################################################################
29
# Developer - "slm" - Jeroen Vloothuis #
30
# Graphics - "Korruptor" - Gareth Noyce #
31
# Music - "theGREENzebra" #
32
#########################################################################
34
# chakie(Jan Elkholm) - letting me "embrace and extend" his gui lib #
35
# Mighty(Xander Soldaat) - for the Makefile and the Debian packages #
36
# Han - for the rpms #
37
# jk - for the FreeBSD port #
38
# Tjerk Nan - for the Windows version #
39
# Micon - for the webdesign #
40
# Everyone in #pygame and the opensource community in general #
41
#########################################################################
42
# This software is licensed under the GPL - General Public License #
43
#########################################################################
51
def __init__(self, difficulty):
54
# This method returns the move to be made
55
def doMove(self, board, player, event):
57
if event >-1 and event < 7:
61
def setmove(self, trigger, event, number):
62
if rules.isMoveLegal(self.board, number):
65
def gameOver(self, move):
68
def setDifficulty(self, difficulty):