5 kyu
Check that the situation is correct
230 of 414user5697006
Loading description...
Puzzles
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
python new test framework
PHP version, ready for revision
I must admit that I broke a sweat here...
Please mention in the description that the game always have starts with player
X
; otherwise this doesn't make sense:Its already in the description:
Doesn't this stand out enough? Maybe something like "One of them puts a cross, and the other one - a zero. Cross is always first." ?
Fine, I was not reading carefully enough.
Python: tests use
0
and notO
as written in description.One of them should be updated.
field:
XX0 X0X 0X0
Submitted: true
Expected: false
is it right ? why should be false ?
Premise: The piece
X
is placed first on the board and in each turn the player must play his chance.Conclusion: After the move made by piece
O
the number ofX
should be equal toO
.In this case, the
O
has already won => The game must halt at that point => The numbers ofX
should be equal to the numbers ofO
,but numbers ofO
:4
, and numbers ofX
:5
and 4 != 5 => This event is impossible in this game.From the basic test of the c-version:
tester("__0______", false);
Can anyone explain to me why it's false? The way I understand it only one action has been taken, one player has marked one cell with 0.
X
always goes firstYeah, I just noticed :-) Me bad for not reading, I'm used to the one going first picks symbol.
Maybe I don't understand tic-tac-toe, but I think this should be a true case. is_it_possible("XXX"+
"000"+
"___") # Should return False
would this not represent a scenario where its X turn to go next?
It can't happen because if
X
places three letters in a row: game over. Thus0
wouldn't've even had a chance to place its third letter at all.C Translation kumited.
Approved
JavaScript translation
Approved ;)
Haskell translation
Approved
this type of case is missing:
Thank you, fixed it
Random tests do not always create a
field
of this kind:allowing this invalid solution to pass the kata.
Thank you for your feedback, took action)
duplicate, isn't it? (or at least, not different enough?)
No, I don't think so. The goals of our kata are different from each other and my task is not a sub task for that other task.