Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
Hi
Why is it suited for python 3.10 ? what's the feature of it involved in the refinement of the code ?
Thanks
This comment is hidden because it contains spoiler information about the solution
I am in the same position and I understand that the result must be ?.
Solution 1: ( "!" are the positions that one can safelly call game.open. "X" upper case is the first guess.
x 2 3 x 2
2 ! x x 2
! x 3 3 2
! ! ! 2 x
! ! X 2 1
In this case we found one possible solution.
Solution 2:
x 2 3 x 2
2 x ! x 2
! ! 3 3 2
? ! X 2 x
? ? ! 2 1
One mine in any of the ? will also be a solution, so we have 3 more possibilities.
As we end with 4 possible solutions the return should be "?"
This comment is hidden because it contains spoiler information about the solution
The second solution is invalid. Look at the
left-bottom coner
, if no mines around it, it will be "0", not "?".And if your code is clever enough, you can open a and b positions safely: