bot
Class RandomBot

java.lang.Object
  extended by bot.Bot
      extended by bot.RandomBot
All Implemented Interfaces:
IF_Bot_Talk

public class RandomBot
extends Bot

Simple bot who plays all games and bets randomly.

Author:
Witthold/Korol

Field Summary
 
Fields inherited from class bot.Bot
buyin, equities, estimations, extFeeds, gameStorage, myname, proposals, random, state, talk
 
Constructor Summary
RandomBot(java.lang.String config)
           
 
Method Summary
 int[] getBet()
          Returns the actual bet, which is to be sent to the server.
protected  boolean isPlayable()
          The specific bot can decide, if he want to / can play this kind of game.
static void main(java.lang.String[] args)
           
 
Methods inherited from class bot.Bot
addAction, addAction, endHand, endLastRound, gameOver, getBuyin, getName, getNumPlayers, getRandomBet, handleStateChange, newGame, newRound, printState, run, setBlinds, setBoardCards, setGetGamedef, setHand, setHoleCards, setNextActivePlayer, setPlayers, showdown, showdown, storeCompetitionEndData, storeCompetitionStartData, storeHandEndData, storeHandStartData, storeRoundEndData, storeRoundEndData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomBot

public RandomBot(java.lang.String config)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

isPlayable

protected boolean isPlayable()
Description copied from class: Bot
The specific bot can decide, if he want to / can play this kind of game.

Specified by:
isPlayable in class Bot

getBet

public int[] getBet()
Description copied from class: Bot
Returns the actual bet, which is to be sent to the server.
The first integer represents the kind of the bet as defined in BetInt.java
The second integer is only necessary when the amount is to be specified.

Specified by:
getBet in class Bot
Returns:
The calculated bet
See Also:
BetInt