// TODO: what GDLVersion should we have here?
public PlayerInfo getPlayerInfo(){
if(type.equals(PlayerType.REMOTE)){
return new RemotePlayerInfo(row,host+":"+port,host,port,GDLVersion.v1);
}else if(type.equals(PlayerType.RANDOM)){
return new RandomPlayerInfo(row,GDLVersion.v1);
}else{
return new LegalPlayerInfo(row,GDLVersion.v1);
}
}