Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.12 #557

Merged
merged 46 commits into from
Nov 20, 2022
Merged

1.12 #557

Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b9a1b84
add numpy
Jun 24, 2022
c62d48e
fix rotation on new game
Jun 24, 2022
e53461e
fix wide root zero
Aug 9, 2022
81ca44c
edit INSTALL.md
Aug 26, 2022
01e487b
force hints on only if starting pondering
Aug 29, 2022
162b33c
readme
Aug 29, 2022
88f0c44
Merge branch '1.11.3' of github.com:sanderland/katrain into 1.11.3
Aug 30, 2022
de0e544
edit README.md
Sep 6, 2022
c9ae4f6
Check that the platform is Windows, and the user32 dll has the SetPro…
Sep 19, 2022
1cff741
Prevents blurry Kivy windows on high dpi displays.
Sep 19, 2022
879fe02
Merge branch 'master' of github.com:sanderland/katrain into 1.11.3
Sep 24, 2022
dc1022d
Use kivy.platform instead of the platform package.
Sep 26, 2022
e9a93e0
Merge pull request #553 from jacobm-tech/windows-dpi-scaling-fix
sanderland Sep 26, 2022
f5d0d51
Fix bug when the board size is not square.
Sep 27, 2022
b72421d
Set log level back to "warning" (was changed by mistake in a previous…
Sep 27, 2022
08cfd37
Merge pull request #559 from jacobm-tech/1.11.3
sanderland Sep 27, 2022
9f1d063
change pyinstaller icon file paths from fully qualified to relative, …
ulty4life Sep 29, 2022
8374190
add VSVersionInfo metadata to Windows executable file from PyInstaller
ulty4life Sep 29, 2022
a115832
replace importLib modules with path modification and regular imports
ulty4life Sep 30, 2022
a12be8e
Merge pull request #561 from ulty4life/feature/exe-version
sanderland Sep 30, 2022
8497865
Initial code for analysis in move range (not working yet).
Oct 5, 2022
aa4821d
Initial working code for move range analysis. Work in progress, i18n …
Oct 6, 2022
1778230
Initial working code for move range analysis. Work in progress, i18n …
Oct 5, 2022
7ce111e
Merge remote-tracking branch 'origin/analysis-move-range' into analys…
Oct 6, 2022
672a98e
Get rid of unnecessary code for getting dialog subwidgets.
jacobm-tech Oct 6, 2022
48e0e14
Implemented greyed-out inputs when the move range checkbox is not sel…
Oct 6, 2022
bc95ff5
Fix spacing which was changed by accident.
jacobm-tech Oct 6, 2022
70113c0
edit katrain/popups.kv, edit katrain/gui/popups.py
Oct 7, 2022
5e57bfe
Fix invocation of game analysis.
jacobm-tech Oct 7, 2022
d0dba52
Added i18n for the move range analysis. i18n done for Russian.
jacobm-tech Oct 8, 2022
d3c6433
TODO removed for Russian.
jacobm-tech Oct 8, 2022
e34feeb
Translated remaining Russian strings which were TODO:.
jacobm-tech Oct 8, 2022
c04488b
French strings for move range analysis.
jacobm-tech Oct 8, 2022
0d59166
Change the way analyze_extra is called when move range is specified.
jacobm-tech Oct 9, 2022
572b36e
Merge pull request #563 from jacobm-tech/analysis-move-range
sanderland Oct 9, 2022
8e91f23
scale=0 turns off
Oct 9, 2022
71843d8
allow 3.10
Oct 9, 2022
2aea564
edit .github/workflows/test.yaml
Oct 10, 2022
1cd8a83
Blended territory display (#556)
jacobm-tech Oct 12, 2022
b030091
fix test yaml
Oct 12, 2022
cd80888
edit spec/file_version.py, edit katrain/core/game.py and 3 other changes
Oct 12, 2022
6474530
edit katrain/core/constants.py
Oct 12, 2022
324f3c5
Fixes and enhancements for the blended territory feature. (#564)
jacobm-tech Oct 25, 2022
cd1254d
Remove numpy (#570)
jacobm-tech Oct 27, 2022
732c33f
Fix region of interest display when board is rotated. (#572)
jacobm-tech Oct 28, 2022
9f878ce
themes
Nov 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix region of interest display when board is rotated. (#572)
  • Loading branch information
jacobm-tech authored Oct 28, 2022
commit 732c33fb7ec9a2e95ff8751eb54b4ad511aa54d3
16 changes: 9 additions & 7 deletions katrain/gui/badukpan.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,14 +839,17 @@ def draw_territory_color(self, grid, loss_color=None):
PopMatrix()

def draw_roi_box(self, region_of_interest, width: float = 2):
xmin, xmax, ymin, ymax = region_of_interest
x1, x2, y1, y2 = region_of_interest
x_start, y_start = self.gridpos[y1][x1]
x_end, y_end = self.gridpos[y2][x2]

Color(*Theme.REGION_BORDER_COLOR)
Line(
rectangle=(
self.gridpos[ymin][xmin][0] - self.grid_size / 3,
self.gridpos[ymin][xmin][1] - self.grid_size / 3,
(xmax - xmin + 2 / 3) * self.grid_size,
(ymax - ymin + 2 / 3) * self.grid_size,
min(x_start, x_end) - self.grid_size / 3,
min(y_start, y_end) - self.grid_size / 3,
abs(x_start - x_end) + (2 / 3) * self.grid_size,
abs(y_start - y_end) + (2 / 3) * self.grid_size,
),
width=width,
)
Expand Down Expand Up @@ -1034,8 +1037,7 @@ def draw_hover_contents(self, *_args):
)

if self.selecting_region_of_interest and len(self.region_of_interest) == 4:
x1, x2, y1, y2 = self.region_of_interest
self.draw_roi_box([min(x1, x2), max(x1, x2), min(y1, y2), max(y1, y2)], width=dp(2))
self.draw_roi_box(self.region_of_interest, width=dp(2))
else:
# hover next move ghost stone
if self.ghost_stone:
Expand Down