Skip to content

Commit

Permalink
update docs & actions for 0.1.15 release
Browse files Browse the repository at this point in the history
  • Loading branch information
atw1020 committed Aug 15, 2021
1 parent 45acd70 commit 55f1ddc
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 49 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
push:
branches:
- master
# release:
# types:
# - published
release:
types:
- published


jobs:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
name: Upload if release
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
# if: github.event_name == 'release' && github.event.action == 'published'
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/setup-python@v2
Expand Down
74 changes: 37 additions & 37 deletions docs/tutorial/sgf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,25 +118,25 @@ If we wish to play the game all the way through to Hong Jansik's resignation at
>>> game.play_default_sequence()
>>> print(game)
1 . . ⚪ . . . . . . . . . . . . . . . .
2 . ⚪ .  ⚪ ⚫ . . . ⚪ . ⚫ . . . . . .  ⚪ 
3 . .  ⚪ ⚫ ⚫ . . ⚪ .  ⚪ ⚫ . .  ⚫ ⚫ ⚪ ⚪ ⚫ .
4 . . . ⚪ . ⚫ .  ⚪ ⚪ ⚫ ⚪ . . . .  ⚫ ⚫ .
5 . .  ⚪ ⚪ . . . . . ⚫ . . . . . .  ⚪ ⚫ 
6 . .  ⚪ ⚫ ⚫ . . . . . . . . . . . . . .
7 . .  ⚫ ⚪ ⚪ ⚫ . ⚪ . ⚫ . . . . . . . . .
8 . . .  ⚫ ⚪ ⚪ ⚫ . . . . . . . . . . . .
9 .  ⚪ ⚪ ⚪ ⚫ ⚪ ⚪ ⚫ . . . . . . . . . . .
10 .  ⚫ ⚪ ⚫ ⚫ ⚫ ⚪ ⚪ * ⚫ . . . . * . ⚫ .
11 .  ⚪ ⚫ ⚫ ⚪ .  ⚫ ⚪ ⚪ ⚫ .  ⚫ ⚫ . ⚫ .  ⚫ ⚪ .
12 .  ⚪ ⚪ ⚫ .  ⚫ ⚫ ⚫ ⚪ ⚪ ⚫ ⚫ . ⚫ . ⚫ .  ⚪ 
13 .  ⚪ ⚪ ⚫ ⚫ ⚪ ⚪ ⚫ ⚫ ⚪ ⚪ ⚫ .  ⚫ ⚫ ⚪ ⚪ ⚪ .
14  ⚫ ⚪ ⚫ ⚫ ⚪ ⚪ ⚫ ⚫ .  ⚫ ⚪ ⚫ . ⚫ .  ⚫ ⚫ ⚫ 
15 . ⚫ .  ⚫ ⚪ ⚫ ⚫ ⚪ ⚫ .  ⚪ ⚫ ⚫ ⚫ ⚫ ⚪ ⚪ ⚫ 
16  ⚫ ⚫ ⚫ ⚪ ⚪ ⚫ ⚪ ⚪ ⚫ ⚪ ⚪ . ⚪ . .  ⚪ ⚪ ⚫ .
17  ⚫ ⚪ ⚫ ⚪ .  ⚪ ⚪ .  ⚫ ⚪ . ⚪ .  ⚫ ⚫ ⚫ ⚪ ⚫ 
18 .  ⚪ ⚫ ⚪ .  ⚪ ⚫ ⚫ ⚫ ⚫ ⚪ . . . . .  ⚪ ⚪ 
19 ⚪ .  ⚪ ⚪ ⚪ . ⚪ . . ⚪ . . . . . . .  ⚪ 
1 . . ⚪ . . . . . . . . . . . . . . . .
2 . ⚪ .  ⚪ ⚫ . . . ⚪ . ⚫ . . . . . .  ⚪ 
3 . .  ⚪ ⚫ ⚫ . . ⚪ .  ⚪ ⚫ . .  ⚫ ⚫ ⚪ ⚪ ⚫ .
4 . . . ⚪ . ⚫ .  ⚪ ⚪ ⚫ ⚪ . . . .  ⚫ ⚫ .
5 . .  ⚪ ⚪ . . . . . ⚫ . . . . . .  ⚪ ⚫ 
6 . .  ⚪ ⚫ ⚫ . . . . . . . . . . . . . .
7 . .  ⚫ ⚪ ⚪ ⚫ . ⚪ . ⚫ . . . . . . . . .
8 . . .  ⚫ ⚪ ⚪ ⚫ . . . . . . . . . . . .
9 .  ⚪ ⚪ ⚪ ⚫ ⚪ ⚪ ⚫ . . . . . . . . . . .
10 .  ⚫ ⚪ ⚫ ⚫ ⚫ ⚪ ⚪ * ⚫ . . . . * . ⚫ .
11 .  ⚪ ⚫ ⚫ ⚪ .  ⚫ ⚪ ⚪ ⚫ .  ⚫ ⚫ . ⚫ .  ⚫ ⚪ .
12 .  ⚪ ⚪ ⚫ .  ⚫ ⚫ ⚫ ⚪ ⚪ ⚫ ⚫ . ⚫ . ⚫ .  ⚪ 
13 .  ⚪ ⚪ ⚫ ⚫ ⚪ ⚪ ⚫ ⚫ ⚪ ⚪ ⚫ .  ⚫ ⚫ ⚪ ⚪ ⚪ .
14  ⚫ ⚪ ⚫ ⚫ ⚪ ⚪ ⚫ ⚫ .  ⚫ ⚪ ⚫ . ⚫ .  ⚫ ⚫ ⚫ 
15 . ⚫ .  ⚫ ⚪ ⚫ ⚫ ⚪ ⚫ .  ⚪ ⚫ ⚫ ⚫ ⚫ ⚪ ⚪ ⚫ 
16  ⚫ ⚫ ⚫ ⚪ ⚪ ⚫ ⚪ ⚪ ⚫ ⚪ ⚪ . ⚪ . .  ⚪ ⚪ ⚫ .
17  ⚫ ⚪ ⚫ ⚪ .  ⚪ ⚪ .  ⚫ ⚪ . ⚪ .  ⚫ ⚫ ⚫ ⚪ ⚫ 
18 .  ⚪ ⚫ ⚪ .  ⚪ ⚫ ⚫ ⚫ ⚫ ⚪ . . . . .  ⚪ ⚪ 
19 ⚪ .  ⚪ ⚪ ⚪ . ⚪ . . ⚪ . . . . . . .  ⚪ 
A B C D E F G H J K L M N O P Q R S T
Alternatively, sente also provides the ``get_default_sequence()`` method which returns the sequence of moves rather than playing them out.
Expand All @@ -149,24 +149,24 @@ Because the sequence of moves is a python list, it is subject to python list sli
>>> game.play_sequence(sequence[:95]) # Lee Sedol's famous ladder sequence
>>> print(game)
1 . . . . . . . . . . . . . . . . . . .
2 .  ⚪ ⚫ ⚪ . . . . . . . . . . . . . . .
3 . .  ⚪ ⚫ ⚫ . . . . . . . . ⚫ . . . . .
4 . . . ⚪ . ⚫ . . . * . . . . . ⚫ . . .
5 . .  ⚪ ⚪ . . . . . . . . . . . . . . .
6 . .  ⚪ ⚫ ⚫ . . . . . . . . . . . . . .
7 . .  ⚫ ⚪ ⚪ ⚫ . . . . . . . . . . . . .
8 . . .  ⚫ ⚪ ⚪ ⚫ . . . . . . . . . . . .
9 . . . .  ⚫ ⚪ ⚪ ⚫ . . . . . . . . . . .
10 . . . * .  ⚫ ⚪ ⚪ * . . . . . * . ⚫ .
11 . . . . . .  ⚫ ⚪ ⚪ ⚫ . . . . ⚫ .  ⚫ ⚪ .
12 . . . . . . .  ⚫ ⚪ ⚪ ⚫ .  ⚪ ⚫ . ⚫ .  ⚪ 
13 . . . . . . . .  ⚫ ⚪ ⚪ ⚫ ⚪ ⚫ ⚫ ⚪ ⚪ ⚪ .
14 . . . . . . . . .  ⚫ ⚪ ⚫ ⚪ ⚪ ⚪ ⚫ ⚫ ⚫ 
15 . . ⚪ . . . . . . . .  ⚫ ⚫ ⚫ ⚫ ⚪ ⚪ ⚫ 
16 . . . * . . . . . * . . ⚪ . .  ⚪ ⚪ ⚫ .
17 . . . ⚪ . . . . ⚫ . . . .  ⚫ ⚫ ⚫ ⚪ ⚫ 
18 . . . . . . . . . . . . . . . .  ⚪ ⚪ 
19 . . . . . . . . . . . . . . . . . ⚪ .
2 .  ⚪ ⚫ ⚪ . . . . . . . . . . . . . . .
3 . .  ⚪ ⚫ ⚫ . . . . . . . . ⚫ . . . . .
4 . . . ⚪ . ⚫ . . . * . . . . . ⚫ . . .
5 . .  ⚪ ⚪ . . . . . . . . . . . . . . .
6 . .  ⚪ ⚫ ⚫ . . . . . . . . . . . . . .
7 . .  ⚫ ⚪ ⚪ ⚫ . . . . . . . . . . . . .
8 . . .  ⚫ ⚪ ⚪ ⚫ . . . . . . . . . . . .
9 . . . .  ⚫ ⚪ ⚪ ⚫ . . . . . . . . . . .
10 . . . * .  ⚫ ⚪ ⚪ * . . . . . * . ⚫ .
11 . . . . . .  ⚫ ⚪ ⚪ ⚫ . . . . ⚫ .  ⚫ ⚪ .
12 . . . . . . .  ⚫ ⚪ ⚪ ⚫ .  ⚪ ⚫ . ⚫ .  ⚪ 
13 . . . . . . . .  ⚫ ⚪ ⚪ ⚫ ⚪ ⚫ ⚫ ⚪ ⚪ ⚪ .
14 . . . . . . . . .  ⚫ ⚪ ⚫ ⚪ ⚪ ⚪ ⚫ ⚫ ⚫ 
15 . . ⚪ . . . . . . . .  ⚫ ⚫ ⚫ ⚫ ⚪ ⚪ ⚫ 
16 . . . * . . . . . * . . ⚪ . .  ⚪ ⚪ ⚫ .
17 . . . ⚪ . . . . ⚫ . . . .  ⚫ ⚫ ⚫ ⚪ ⚫ 
18 . . . . . . . . . . . . . . . .  ⚪ ⚪ 
19 . . . . . . . . . . . . . . . . . ⚪ .
A B C D E F G H J K L M N O P Q R S T
Saving Games
Expand Down
4 changes: 2 additions & 2 deletions src/include/Board.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ namespace sente {

switch(board[i][j]){
case BLACK:
accumulator << "";
accumulator << "";
break;
case WHITE:
accumulator << "";
accumulator << "";
break;
case EMPTY:
// check if we are on a star point
Expand Down
12 changes: 6 additions & 6 deletions tests/test_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test__str__(self):
board.play(Move(0, 18, stone.BLACK))
board.play(Move(15, 3, stone.WHITE))

correct = " 1 . . . . . . . . . . . . . . . . . . ⚫ \n" \
correct = " 1 . . . . . . . . . . . . . . . . . . ⚫ \n" \
" 2 . . . . . . . . . . . . . . . . . . . \n" \
" 3 . . . . . . . . . . . . . . . . . . . \n" \
" 4 . . . * . . . . . * . . . . . * . . . \n" \
Expand All @@ -91,7 +91,7 @@ def test__str__(self):
"13 . . . . . . . . . . . . . . . . . . . \n" \
"14 . . . . . . . . . . . . . . . . . . . \n" \
"15 . . . . . . . . . . . . . . . . . . . \n" \
"16 . . . ⚪ . . . . . * . . . . . * . . . \n" \
"16 . . . ⚪ . . . . . * . . . . . * . . . \n" \
"17 . . . . . . . . . . . . . . . . . . . \n" \
"18 . . . . . . . . . . . . . . . . . . . \n" \
"19 . . . . . . . . . . . . . . . . . . . \n" \
Expand Down Expand Up @@ -170,15 +170,15 @@ def test__str__(self):
board.play(Move(0, 0, stone.BLACK))
board.play(Move(8, 3, stone.WHITE))

correct = " 1 ⚫ . . . . . . . . . . . . \n" \
correct = " 1 ⚫ . . . . . . . . . . . . \n" \
" 2 . . . . . . . . . . . . . \n" \
" 3 . . . . . . . . . . . . . \n" \
" 4 . . . * . . . . . * . . . \n" \
" 5 . . . . . . . . . . . . . \n" \
" 6 . . . . . . . . . . . . . \n" \
" 7 . . . . . . * . . . . . . \n" \
" 8 . . . . . . . . . . . . . \n" \
" 9 . . . ⚪ . . . . . . . . . \n" \
" 9 . . . ⚪ . . . . . . . . . \n" \
"10 . . . * . . . . . * . . . \n" \
"11 . . . . . . . . . . . . . \n" \
"12 . . . . . . . . . . . . . \n" \
Expand Down Expand Up @@ -258,15 +258,15 @@ def test__str__(self):
board.play(Move(0, 0, stone.BLACK))
board.play(Move(8, 3, stone.WHITE))

correct = " 1 ⚫ . . . . . . . . \n" \
correct = " 1 ⚫ . . . . . . . . \n" \
" 2 . . . . . . . . . \n" \
" 3 . . * . . . * . . \n" \
" 4 . . . . . . . . . \n" \
" 5 . . . . * . . . . \n" \
" 6 . . . . . . . . . \n" \
" 7 . . * . . . * . . \n" \
" 8 . . . . . . . . . \n" \
" 9 . . . ⚪ . . . . . \n" \
" 9 . . . ⚪ . . . . . \n" \
" A B C D E F G H J\n"

"""if platform == "win32":
Expand Down

0 comments on commit 55f1ddc

Please sign in to comment.