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.
thanks sir ^^
i passed the random test ^^
the error ones is at the bottom
sry sir
let me test again
And what was the error message for that input?
i got this result sir.
Alice = [acne, bide, bong, lime, hath, duos, tail, guls, cows, achy, harl, unco, jouk, airy, delt, item, drys, quip, data, berm, ruts, move, bops, amie, lash, muso, mewl, filo, gars, sand, kava, muni, bima, soja, dies, haen, ebon, haji, byte, moly, funs, deed, cate, cone, buns, ways, obis, ambo, duel, surd, lavs, boar, acyl, whid, tels, dags, ears, blah, liny, oral, last, tuts, balm, feel, lint, soon, lore, then, rimu, tyin, over, whys, qadi, mode, deys, loto, inns, alme, phot, oint, zebu, wits, most, alps, hors, arty, hall, ixia, haes, hart, kind, nobs, dido, ocas, loin, chef, redd, nurl, aged, half]
Bob = [leek, ends, pegs, immy, want, zigs, less, wady, zest, tall, lops, thru, toro, puts, fley, meme, bled, ford, whim, case, midi, tuis, wham, gimp, trey, muni, java, corf, pram, alba, bloc, cobb, ails, craw, ogre, jehu, aced, icon, tuna, mead, amia, dado, lins, uses, pest, prof, olds, duel, silt, slur, blin, ados, mols, kaes, rats, flus, aged, pies, bola, shun, crab, fuss, bawl, tony, bowl, yean, sari, wynd, lent, zero, made, sons, tome, perk, hahs, gosh, dreg, dirl, mote, tale, hoya, pops, cauf, gams, time, tons, sunk, wynn, chef, veep, sect, grey, arch, onyx, sola, mein, dost, ball, pome, larn]
word: "mile"
first: 0
start word -> mile
Neither Win !!!
thanks ^^
This comment is hidden because it contains spoiler information about the solution
I ran your code; it passes the fixed tests (but not all random tests).
You can just jam in some print statements at the beginning of your code, here ya go:
You'll have to create those tests yourself in your IDE. You can use the random tests you just printed! Just be careful to copy everything correctly.
java.lang.AssertionError: expected:<-1> but was:<1>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:631)
at SolutionTest.randomTests(SolutionTest.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:39)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:79)
at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:70)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:170)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:154)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)
at io.qualified.junit5.RunTests.main(RunTests.java:25)
Kata with many details to consider. Nice.
I learned to use reduce() ... (Python)
hi
how to check failed random test string values of alice and bob (java)
i want it to test on my ide
i've passed the test
thanks
This comment is hidden because it contains spoiler information about the solution
I just realized, this case is the 3rd example in the description. Well, there it doesn't explain
"mere"
is not valid, that's shown in the 5th example.Thanks a lot, I finished this kata. Great job!
Ok, thanks
I didn't realized there was invalid words on the player's memories
"mere"
is not valid,"more"
is, then Alice plays"pore"
, Bob plays"pure"
, Alice plays"pare"
, and she wins.Loading more items...