jagafa.ai
Class SimpleAI

java.lang.Object
  extended by jagafa.ai.SimpleAI
All Implemented Interfaces:
JassAI

public class SimpleAI
extends java.lang.Object
implements JassAI

A simple (quite stupid) AI implementation


Constructor Summary
SimpleAI()
           
 
Method Summary
 RuleSet chooseRuleSet()
          Choose a RuleSet out of the available Sets of a given scoreTable
 Card computeCard()
          Compute a card to be played by the player
 void init(Player p, JassRound round)
          Initializes the AI with the Player and the Game object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAI

public SimpleAI()
Method Detail

computeCard

public Card computeCard()
Description copied from interface: JassAI
Compute a card to be played by the player

Specified by:
computeCard in interface JassAI
Returns:
The card computed by the AI

init

public void init(Player p,
                 JassRound round)
Description copied from interface: JassAI
Initializes the AI with the Player and the Game object

Specified by:
init in interface JassAI
Parameters:
p - The player which holds this AI
round - The game object

chooseRuleSet

public RuleSet chooseRuleSet()
Description copied from interface: JassAI
Choose a RuleSet out of the available Sets of a given scoreTable

Specified by:
chooseRuleSet in interface JassAI


Copyright 2005 MA Software. All Rights Reserved.