Package b2p.client
Class B2PTablutClient
- java.lang.Object
-
- it.unibo.ai.didattica.competition.tablut.client.TablutClient
-
- b2p.client.B2PTablutClient
-
- All Implemented Interfaces:
java.lang.Runnable
public class B2PTablutClient extends it.unibo.ai.didattica.competition.tablut.client.TablutClientThis Class extends theTablutClientclass to represent a B2P player- Author:
- Alessandro Buldini, Alessandro Pomponio, Federico Zanini
- See Also:
TablutClient
-
-
Constructor Summary
Constructors Constructor Description B2PTablutClient(java.lang.String player)Creates an instance ofB2PTablutClientwith a given player role, defaults the timeout to 60000 milliseconds and the server IP address to localhostB2PTablutClient(java.lang.String player, int timeout)Creates an instance ofB2PTablutClientwith a given player role and timeout.B2PTablutClient(java.lang.String player, int timeout, java.lang.String ipAddress)Creates an instance ofB2PTablutClientwith the given argumentsB2PTablutClient(java.lang.String player, java.lang.String ipAddress)Creates an instance ofB2PTablutClientwith the given arguments and a default timeout set to 60000 milliseconds
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()Starts the client
-
-
-
Constructor Detail
-
B2PTablutClient
public B2PTablutClient(java.lang.String player, int timeout, java.lang.String ipAddress) throws java.io.IOExceptionCreates an instance ofB2PTablutClientwith the given arguments- Parameters:
player- the player nametimeout- the timeout of every turnipAddress- the server IP address- Throws:
java.io.IOException
-
B2PTablutClient
public B2PTablutClient(java.lang.String player, java.lang.String ipAddress) throws java.io.IOExceptionCreates an instance ofB2PTablutClientwith the given arguments and a default timeout set to 60000 milliseconds- Parameters:
player- the player nameipAddress- the server IP address- Throws:
java.io.IOException
-
B2PTablutClient
public B2PTablutClient(java.lang.String player) throws java.io.IOExceptionCreates an instance ofB2PTablutClientwith a given player role, defaults the timeout to 60000 milliseconds and the server IP address to localhost- Parameters:
player- the player name- Throws:
java.io.IOException
-
B2PTablutClient
public B2PTablutClient(java.lang.String player, int timeout) throws java.io.IOExceptionCreates an instance ofB2PTablutClientwith a given player role and timeout. Defaults the server IP address to localhost.- Parameters:
player- the player nametimeout- the timeout of every turn- Throws:
java.io.IOException
-
-