Skip to content

Commit

Permalink
delete openings
Browse files Browse the repository at this point in the history
  • Loading branch information
jalpp authored Dec 17, 2023
1 parent 9dc598d commit d42711d
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/main/java/Controller/WatchMaster.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,7 @@ public String getMasterGames(){
return masterGif;
}

public String getOpenings(String moves){
Random random = new Random();
List<ExploreResult.DBGame> games = chariot.Client.basic().openingExplorer().masters(conf -> conf.play(moves)).get().topGames();
int randomsizer = random.nextInt(games.size());

this.openingGif += "https://lichess1.org/game/export/gif/" + games.get(randomsizer).id() + ".gif";

return this.openingGif;
}

public String[] getOpeningId(){
String[] split = this.openingGif.split(".gif");

return split;
}


=


public String[] getGameId(){
Expand Down

0 comments on commit d42711d

Please sign in to comment.