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.TablutClient
This Class extends theTablutClient
class 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 ofB2PTablutClient
with 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 ofB2PTablutClient
with a given player role and timeout.B2PTablutClient(java.lang.String player, int timeout, java.lang.String ipAddress)
Creates an instance ofB2PTablutClient
with the given argumentsB2PTablutClient(java.lang.String player, java.lang.String ipAddress)
Creates an instance ofB2PTablutClient
with the given arguments and a default timeout set to 60000 milliseconds
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Starts the client
-
-
-
Constructor Detail
-
B2PTablutClient
public B2PTablutClient(java.lang.String player, int timeout, java.lang.String ipAddress) throws java.io.IOException
Creates an instance ofB2PTablutClient
with 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.IOException
Creates an instance ofB2PTablutClient
with 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.IOException
Creates an instance ofB2PTablutClient
with 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.IOException
Creates an instance ofB2PTablutClient
with 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
-
-