Merge pull request #44 from yu-mc/patch-1
Fix one typo in xkcd-Name-Dominoes.ipynb
This commit is contained in:
commit
df1b323d19
@ -28,7 +28,7 @@
|
|||||||
"- **`try_one(tiles, board, frontier)`**: pop a location off the frontier, and try to find some tile that can legally put one of its halves there; when found, `put` the tile there, and remove it from `tiles`.\n",
|
"- **`try_one(tiles, board, frontier)`**: pop a location off the frontier, and try to find some tile that can legally put one of its halves there; when found, `put` the tile there, and remove it from `tiles`.\n",
|
||||||
"- **`legal(name, loc, board)`**: a name can be placed if the location is empty, and there are no conflicts with any neighboring location.\n",
|
"- **`legal(name, loc, board)`**: a name can be placed if the location is empty, and there are no conflicts with any neighboring location.\n",
|
||||||
"- **`neighbors(loc, board)`**: returns the (up to 4) neighbors of a location that are on the board.\n",
|
"- **`neighbors(loc, board)`**: returns the (up to 4) neighbors of a location that are on the board.\n",
|
||||||
"- **`put_tile(board, loc0, loc1, tile, frontier)`**: places a tile on the board across `loc0` and `loc`; update the `frontier` to say that the just-covered locations are no longer in the frontier, but the empty neighbors of the tile are.\n",
|
"- **`put_tile(board, loc0, loc1, tile, frontier)`**: places a tile on the board across `loc0` and `loc1`; update the `frontier` to say that the just-covered locations are no longer in the frontier, but the empty neighbors of the tile are.\n",
|
||||||
"- **`shuffle(items)`**: used to randomize lists; calls `random.shuffle` and returns the result.\n",
|
"- **`shuffle(items)`**: used to randomize lists; calls `random.shuffle` and returns the result.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# The Code"
|
"# The Code"
|
||||||
|
Loading…
Reference in New Issue
Block a user