GODPAPER | All Packages | All Classes | Index | Frames No Frames |
BitBoardUtil

Package | com.godpaper.as3.utils
Class | public class BitBoardUtil
Inheritance | BitBoardUtil Object

BitBoardUtil.as class. Esp for bishop/rook/queen move generation

See also

http://chessprogramming.wikispaces.com/Sliding+Piece+Attacks

Public Methods

| Method | Defined By
--- | --- | ---
|  | getBishopMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard [static] | BitBoardUtil
|  | getBishopOccupies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard [static] | BitBoardUtil
|  | getEastMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard [static] | BitBoardUtil
|  | getEastNorthMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard [static] | BitBoardUtil
|  | getEastNorthOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard [static] | BitBoardUtil
|  | getEastOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard [static] | BitBoardUtil
|  | getEastSouthMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard [static] | BitBoardUtil
|  | getEastSouthOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard [static] | BitBoardUtil
|  | getNorthMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard [static] | BitBoardUtil
|  | getNorthOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard [static] | BitBoardUtil
|  | getQueenMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard [static] | BitBoardUtil
|  | getQueenOccupies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard [static] | BitBoardUtil
|  | getRookMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard [static] | BitBoardUtil
|  | getRookOccupies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard [static] | BitBoardUtil
|  | getSouthMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard [static] | BitBoardUtil
|  | getSouthOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard [static] | BitBoardUtil
|  | getWestMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard [static] | BitBoardUtil
|  | getWestNorthMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard [static] | BitBoardUtil
|  | getWestNorthOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard [static] | BitBoardUtil
|  | getWestOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard [static] | BitBoardUtil
|  | getWestSouthMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard [static] | BitBoardUtil
|  | getWestSouthOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard [static] | BitBoardUtil

Method Detail

getBishopMoves | () | method

`public static function getBishopMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`
| `flag:int`
| `bluePieces:BitBoard`
| `redPieces:BitBoard`

Returns

| `BitBoard`

getBishopOccupies | () | method |

`public static function getBishopOccupies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`

Returns

| `BitBoard`

getEastMoves | () | method |

`public static function getEastMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`
| `flag:int`
| `bluePieces:BitBoard`
| `redPieces:BitBoard`

Returns

| `BitBoard`

getEastNorthMoves | () | method |

`public static function getEastNorthMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`
| `flag:int`
| `bluePieces:BitBoard`
| `redPieces:BitBoard`

Returns

| `BitBoard`

getEastNorthOccuipies | () | method |

`public static function getEastNorthOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`

Returns

| `BitBoard`

getEastOccuipies | () | method |

`public static function getEastOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`

Returns

| `BitBoard`

getEastSouthMoves | () | method |

`public static function getEastSouthMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`
| `flag:int`
| `bluePieces:BitBoard`
| `redPieces:BitBoard`

Returns

| `BitBoard`

getEastSouthOccuipies | () | method |

`public static function getEastSouthOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`

Returns

| `BitBoard`

getNorthMoves | () | method |

`public static function getNorthMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`
| `flag:int`
| `bluePieces:BitBoard`
| `redPieces:BitBoard`

Returns

| `BitBoard`

getNorthOccuipies | () | method |

`public static function getNorthOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`

Returns

| `BitBoard`

getQueenMoves | () | method |

`public static function getQueenMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`
| `flag:int`
| `bluePieces:BitBoard`
| `redPieces:BitBoard`

Returns

| `BitBoard`

getQueenOccupies | () | method |

`public static function getQueenOccupies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`

Returns

| `BitBoard`

getRookMoves | () | method |

`public static function getRookMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`
| `flag:int`
| `bluePieces:BitBoard`
| `redPieces:BitBoard`

Returns

| `BitBoard`

getRookOccupies | () | method |

`public static function getRookOccupies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`

Returns

| `BitBoard`

getSouthMoves | () | method |

`public static function getSouthMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`
| `flag:int`
| `bluePieces:BitBoard`
| `redPieces:BitBoard`

Returns

| `BitBoard`

getSouthOccuipies | () | method |

`public static function getSouthOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`

Returns

| `BitBoard`

getWestMoves | () | method |

`public static function getWestMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`
| `flag:int`
| `bluePieces:BitBoard`
| `redPieces:BitBoard`

Returns

| `BitBoard`

getWestNorthMoves | () | method |

`public static function getWestNorthMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`
| `flag:int`
| `bluePieces:BitBoard`
| `redPieces:BitBoard`

Returns

| `BitBoard`

getWestNorthOccuipies | () | method |

`public static function getWestNorthOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`

Returns

| `BitBoard`

getWestOccuipies | () | method |

`public static function getWestOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`

Returns

| `BitBoard`

getWestSouthMoves | () | method |

`public static function getWestSouthMoves(rowIndex:int, colIndex:int, rowMax:int, colMax:int, flag:int, bluePieces:BitBoard, redPieces:BitBoard):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`
| `flag:int`
| `bluePieces:BitBoard`
| `redPieces:BitBoard`

Returns

| `BitBoard`

getWestSouthOccuipies | () | method |

`public static function getWestSouthOccuipies(rowIndex:int, colIndex:int, rowMax:int, colMax:int):BitBoard`

Parameters

| `rowIndex:int`
| `colIndex:int`
| `rowMax:int`
| `colMax:int`

Returns

| `BitBoard`

Thu Jan 16 2014, 01:11 PM +08:00