• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
grigr Avatar
Name:Evgeniy
Clan:Unknown
Member Since:Jan 2022
Last Seen:Apr 2025
Profiles:
Following:0
Followers:1
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (40)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • grigr
    • commented on "Hard Sudoku Solver" kata
    • 3 years ago

    raise ValueError('puzzle is unsolvable')

  • Custom User Avatar
    • grigr
    • commented on "Hard Sudoku Solver" kata
    • 3 years ago

    Very interest Kata :) Thank you
    luckily i found the right method. my algorithm solved everything in 6 seconds, only on one Sudoku from your set it was required to take 1 step back.
    also my algorithm solved in 2 seconds "the most difficult sudoku in the world" by taking 14 steps back. I'm glad that my program coped with it!

  • Custom User Avatar
    • grigr
    • commented on "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    my algorithm restores the level so that you don't have to remove extra walls. but I knew that someone will face this problem.
    you can make an additional algorithm for filling empty spaces to remove extra walls. or rebuild the logic of your algorithm.

    when I created the kata, I suggested rank 4. but those who decided it first changed to level 5. Apparently for some this is a very simple task.

  • Custom User Avatar
    • Davo36
    • commented on "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    Man, I must be looking at this one strangely. I can get the level, but the border around the outside is very difficult to do. Seems like a level 3 kata to me. Must be missing something.

  • Custom User Avatar
    • grigr
    • commented on "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    i wrote a simple soko-solver. it works with brute-force.
    unfortunately it is still very slow. if I manage to optimize it, it will probably be a great kata :)

  • Custom User Avatar
    • grigr
    • commented on "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    Thank you!
    I thought about it. but I didn't know how to do it right...
    I also need adjust the coefficients for levels 50 * 50 so that there is less empty space

  • Custom User Avatar
    • Avanta
    • commented on "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    No problem. I just noticed that the assertion messages for an incorrect solution are very ugly and hard to see for the user.

    I made a fork that should improve the messages: https://www.codewars.com/kumite/631f2a5d8e714f0062cd5497?sel=631f2a5d8e714f0062cd5497, if you wouldn't mind checking and approving it.

  • Custom User Avatar
    • grigr
    • commented on "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    ok. thank you!
    this is my first kata :)

  • Custom User Avatar
    • Avanta
    • commented on "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    Looks good. I made a small tweak to the tests, if you don't mind, and approved :)

  • Custom User Avatar
    • grigr
    • resolved an issue on "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    i fix problem with empy output.
    also random generate now twice as fast

  • Custom User Avatar
    • grigr
    • commented on "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    I agree with you. i saw this error so i run the generate loop multiple times. this is a strange behavior of the random number generator.
    because of this, the function is slow. I will try to fix it soon...

  • Custom User Avatar
    • Avanta
    • created an issue for "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    Hi again, your random test generator can very occasionally generate an empty string for the input. Eg. for a 6x6 grid, around 1 in 10 generate an input as an empty string. However, this chance does decrease as you increase the grid size so it's very rare for it to happen in the random tests.

    Also, this isn't so much as issue, but could you be able to make the random test generator any faster. It's currently quite slow :P

  • Custom User Avatar
    • grigr
    • commented on "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    after I added random level generation, three solutions became "invalidated". apparently they run again after adding new tests.

    I was also interested in a new problem for solving small levels. maybe I'll do it...

  • Custom User Avatar
    • grigr
    • resolved a question on "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    done

  • Custom User Avatar
    • dfhwze
    • resolved a question on "Sokoban re-solver : level recovery from solution" kata
    • 3 years ago

    .

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...