Skip to content

Conversation

@Egor2013227
Copy link
Contributor

No description provided.

return possible_steps

if user_id == 0:
move_directions = [Point(-1, 1), Point(1, 1)]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Шашка может ходить назад

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не может. Но есть может и назад

if 0 <= new_point.x < a_Board.GetWidth() and 0 <= new_point.y < a_Board.GetHeight():
target_item = a_Board.GetItem(new_point)

if target_item.iType == BoardItemType.biNone:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Шашка может ходить через шашку противника и её есть.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants