• 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
Ruscore Avatar
Name:Ruslan
Clan:Unknown
Member Since:Aug 2020
Last Seen:Mar 2025
Profiles:
Following:2
Followers:1
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (86)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • monadius
    • resolved an issue on "Game Hit the target - 2nd part" kata
    • 14 months ago

    This issue is fixed

  • Custom User Avatar
    • monadius
    • resolved an issue on "Game Hit the target - 2nd part" kata
    • 14 months ago

    The issue is fixed

  • Custom User Avatar
    • cwps
    • created a suggestion for "Game Hit the target - 2nd part" kata
    • 17 months ago

    PHP translation

  • Custom User Avatar
    • cwps
    • created a suggestion for "Game Hit the target" kata
    • 17 months ago

    PHP translation

  • Custom User Avatar
    • mihail-trofimenko
    • created an issue for "Game Hit the target - 2nd part" kata
    • 2 years ago

    For Golang:

    Something wrong with the random tests

    Random tests
    Log
    [^][ ][ ]__
    [x][ ][ ]__
    [ ][ ][ ]
    Arrow is aimed: true

    Expected
    : true
    to equal
    : false

    The same program in vscode:

    [^][ ][ ]_
    [x][ ][ ]_
    [ ][ ][ ]_
    Arrow is aimed: false

    Random tests
    Log
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][x][ ]__
    [^][ ][ ][ ][ ]__
    Arrow is aimed: true

    Expected
    : true
    to equal
    : false

    The same program in vscode:

    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][x][ ]__
    [^][ ][ ][ ][ ]__
    Arrow is aimed: false

    !!!!!!! ============= !!!!!!!!

    Another ramdom tests case:

    [ ][ ][ ][ ][ ]__
    [>][ ][ ][ ][x]__
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][ ][ ]__
    [ ][ ][ ][ ][ ]__
    Arrow is aimed: true

    Expected
    : true
    to equal
    : false

    Why false is expected here?

  • Custom User Avatar
    • ejini战神
    • resolved a suggestion on "Game Hit the target" kata
    • 2 years ago

    Approved by someone

  • Custom User Avatar
    • ahmet_popaj
    • commented on "Game Hit the target - 2nd part" kata
    • 2 years ago

    Very nice kata.

  • Custom User Avatar
    • qmstuart
    • created an issue for "Game Hit the target - 2nd part" kata
    • 2 years ago

    If I'm understand the random test output correctly for golang, I'm seeing random tests like this:

    [[0 0 0 0 0]
     [0 0 0 0 x]
     [0 0 0 0 0]
     [0 0 0 0 ^]
     [0 0 0 0 0]]
    

    which expects the answer to be false.

    Similar:

    [[0 0 v]
     [0 0 0]
     [0 0 x]]
    

    Where 118 is v and 120 is x

    The test is expecting this as false...

    Random tests are even failing on some 3x3s, but I've added every combo of <>^v and x possible in a 3x3 grid, with correct expected results in a 3x3 grid to the sample tests and they all pass.

  • Custom User Avatar
    • Munto
    • commented on "Game Hit the target - 2nd part" kata
    • 2 years ago

    It looks like Go random test cases are bugged.
    Sometimes the expected solution is wrong.
    Take a look please.

  • Custom User Avatar
    • adbiLenLa
    • commented on "Game Hit the target" kata
    • 3 years ago

    #11b30/3q6:0z:vV

    i thought the problem was what you describe
    and i solved it accordingly

  • Custom User Avatar
    • Ruscore
    • commented on "Game Hit the target - 2nd part" kata
    • 3 years ago

    Good job, it turned out really interesting kata

  • Custom User Avatar
    • mdandre
    • commented on "Game Hit the target" kata
    • 3 years ago

    @Ruscore I created a continuation of the Kata https://www.codewars.com/kata/62bc86a35e6abb0024477341 with barriers and in 3d.

  • Custom User Avatar
    • mdandre
    • commented on "Game Hit the target - 2nd part" kata
    • 3 years ago

    @Ruscore I created a continuation of the Kata https://www.codewars.com/kata/62bc86a35e6abb0024477341 with barriers and in 3d.

  • Custom User Avatar
    • akar-0
    • resolved a suggestion on "Game Hit the target - 2nd part" kata
    • 3 years ago

    Reference solution returns true for this case:

           Expect(Solution([][]rune{{' ', ' ', ' '}, {' ', '>', 'x'}})).To(Equal(true))
    

    I guess you're doing something wrong, or I misunderstand something. Can you give the whole input?

  • Custom User Avatar
    • dfhwze
    • commented on "Game Hit the target - 2nd part" kata
    • 3 years ago

    Is Go translation ok?

    > is at 1 1
    x is at 1 2
    
    Test Failed
    Log
    Expected
        <bool>: true
    to equal
        <bool>: false
    
  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...