Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

[RFR] Take pebble from other player #7

Merged
merged 8 commits into from
Feb 1, 2017
Merged

[RFR] Take pebble from other player #7

merged 8 commits into from
Feb 1, 2017

Conversation

zyhou
Copy link
Contributor

@zyhou zyhou commented Feb 1, 2017

No description provided.

@@ -4,7 +4,7 @@
GAME_NO_WINNER = -1
GAME_CONTINUE = -2

winner = GAME_CONTINUE
state_game = GAME_CONTINUE
Copy link
Contributor

Choose a reason for hiding this comment

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

game_state is more correct


while seeds > 0:
i += 1
if i % 12 != position:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why 12? Do we need a constant for this?


for board in boards:
new_board, score = pick(
board['player'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Ugly indentation

@Kmaschta
Copy link
Contributor

Kmaschta commented Feb 1, 2017

Please don't prefix your constants with CONST_.

@Kmaschta Kmaschta merged commit e555fa9 into master Feb 1, 2017
@Kmaschta Kmaschta deleted the pick-pebble branch February 1, 2017 16:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants