-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from havardox/upstream
Fix markdown formatting
- Loading branch information
Showing
5 changed files
with
39 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
## Examples of fluid syntax to construct problems | ||
|
||
``` | ||
```python | ||
>>> from polyomino.board import Chessboard | ||
>>> from polyomino.constant import MONOMINO, DOMINO | ||
>>> from polyomino.tileset import many | ||
|
||
``` | ||
|
||
``` | ||
```python | ||
>>> Chessboard() | ||
<polyomino.board.Chessboard object at ...> | ||
|
||
``` | ||
|
||
``` | ||
```python | ||
>>> Chessboard().tile_with_many(DOMINO) | ||
<polyomino.problem.TilingProblem object at ...> | ||
|
||
``` | ||
|
||
``` | ||
```python | ||
>>> Chessboard().tile_with_set(many(DOMINO).and_repeated_exactly(2, MONOMINO)) | ||
<polyomino.problem.TilingProblem object at ...> | ||
|
||
``` | ||
|
||
``` | ||
```python | ||
>>> Chessboard().tile_with_set(many(DOMINO).and_repeated_exactly(2, MONOMINO)).with_heuristics() | ||
<polyomino.problem.TilingProblem object at ...> | ||
|
||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters