grid-get-siblings

<script src="./point_src/grid-get-siblings"></script>

Assist with the discovery of siblings in a grid.

// Example usage:
rowCount = 9;
positionIndex = 5;
console.log(getNeighboursRect(positionIndex, rowCount));
Meta Data
filepath_exists True
path grid-get-siblings
filepath grid-get-siblings.js
clean_files ()

  • FunctionDeclaration
    function

    getNeighboursRect

    (
    index , rowCount , columnCount , rowWidth
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    getNeighbours

    (
    index , rowWidth
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • VariableDeclaration
    const

    arrayMatch

    =
    ( a , b ) =>
  • VariableDeclaration
    const

    runTests

    =
    function ( )
  • VariableDeclaration
    const

    runOne

    =
    function ( index , expected , extra )
  • VariableDeclaration
    const

    runRectTests

    =
    function ( )
    First row
  • VariableDeclaration
    const

    runRectOne

    =
    function ( shape , index , expected , extra )