public final class Compare
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Compare.Placement |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
checkDuplicate(ConstBoard board,
java.util.ArrayList<Compare.Placement> moves,
java.util.Map<java.lang.Integer,java.util.ArrayList<Compare.Placement>> games,
boolean useAlternate,
boolean isAlternated)
Check if game already exists in game collection.
|
static void |
compare(java.util.ArrayList<java.lang.String> filenames)
Compare a set of SGF files.
|
static java.util.ArrayList<Compare.Placement> |
getPlacements(ConstNode node) |
public static java.lang.String checkDuplicate(ConstBoard board, java.util.ArrayList<Compare.Placement> moves, java.util.Map<java.lang.Integer,java.util.ArrayList<Compare.Placement>> games, boolean useAlternate, boolean isAlternated)
board - Board with the correct size (only used for
Board.rotate).moves - Moves of game to check.games - Games in collection. The key is the game number, the value
is the sequence of moves.useAlternate - If true, assume that players are exchanged every
second game. Only check games where player played the same color.isAlternated - If useAlternate, indicate if game to check
had players exchanged.public static void compare(java.util.ArrayList<java.lang.String> filenames)
throws java.lang.Exception
filenames - List of filenamesjava.lang.Exception - If reading one of the files fails.public static java.util.ArrayList<Compare.Placement> getPlacements(ConstNode node)