Class Board

java.lang.Object
jadex.micro.gobble.Board

public class Board extends Object
  • Constructor Details

    • Board

      public Board(int rows, int cols, int invsize)
  • Method Details

    • getContent

      public List<Board.Move> getContent(int row, int col)
    • addChangeListener

      public void addChangeListener(jadex.micro.gobble.Board.IChangeListener listener)
    • notifyChange

      public void notifyChange(String message)
    • getPlayer

      public int getPlayer()
    • getWinner

      public int getWinner()
    • getWinCombination

      public List<int[]> getWinCombination()
    • getInventory

      public Inventory getInventory(int player)
    • makeMove

      public void makeMove(Board.Move move)
    • placeGhost

      public void placeGhost(int row, int col, int gsize)
    • getCellsForCoordinates

      public List<Board.Move>[] getCellsForCoordinates(List<int[]> coords)
    • getWinCombinations

      public List<List<int[]>> getWinCombinations(int player, BiPredicate<List<Board.Move>[],Integer> filter)
    • getCells

      public List<List<Board.Move>> getCells(List<int[]> coords)
    • hasPotentiallyWon

      public boolean hasPotentiallyWon(List<Board.Move>[] cells, int player)
    • hasCompletionMove

      public boolean hasCompletionMove(List<Board.Move>[] cells, int player)
    • getPotentiallyWon

      public Board.WinStatus getPotentiallyWon(List<Board.Move>[] cells, int player)
    • hasWon

      public boolean hasWon(List<Board.Move>[] cells, int player)
    • checkGhostCount

      public void checkGhostCount()
    • finishMove

      public void finishMove()
    • getPossibleMoves

      public List<Board.Move> getPossibleMoves()
    • isLegalMove

      public boolean isLegalMove(Board.Move move)