Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ calculate_pos
Method
calculate_pos
Checker_game_by_dz/modules/pieces.py:29–31 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
27
28
# calculate the positions
29
def
calculate_pos(self):
30
self.x = (sq_size * self.col) + (sq_size // 2)
31
self.y = (sq_size * self.row) + (sq_size // 2)
32
33
# for making king
34
def
make_king(self):
Callers
2
__init__
Method · 0.95
move
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected