A* Craft - Bugs

Use this topic to report bugs or remarks about the A* Craft challenge.

Special thanks to the creators (Agade, Automaton2000 and Magus)
=> https://www.codingame.com/contests/a-star-craft

The referee code is publicly available on Github
=> https://github.com/CodinGameCommunity/A-Star-Craft

Join the discord:
=> https://discordapp.com/channels/466965651135922206/496670856345550848

A rerun with a new set of validators will be used to compute the final score at the end of the contest.
For now, the tests (IDE) and validators (Submit) are the same.

View Validators/Tests for local run
			Simple
###################
###################
###################
###################
###R...........####
###################
###################
###################
###################
###################
			Dual Simple
###################
###################
###R...........####
###################
###################
###################
###################
###...........L####
###################
###################
			Buggy Robot
###################
###################
###################
###################
###L...........####
###################
###################
###################
###################
###################
			Dual Buggy Robots
###################
###################
###################
###################
###L..........R####
###################
###################
###################
###################
###################
			3x3 Platform
###################
###################
###################
########...########
########...########
########.U.########
###################
###################
###################
###################
			Roundabout
###################
#R................#
#.###############.#
#.#.............#.#
#.#.###########.#.#
#.#.###########.#.#
#.#............L#.#
#.###############.#
#.................#
###################
			Don't Fall
###################
#R................#
#.###############.#
#.###############.#
#.###############.#
#.###############.#
#.###############.#
#d###############.#
#.................#
###################
			Portal
#########.#########
#########d#########
#########.#########
#########.#########
......r...R..r.....
#########.#########
#########.#########
#########d#########
#########.#########
#########.#########
			CodinGame
###################
#......L###......L#
#.#########.#######
#.#########.#######
#.#########.#######
#.#########.##R...#
#.#########.#####.#
#.#########.#####.#
#......L###.......#
###################
			Multiple 3x3 Platforms
###################
#R..#.D.#..L#...###
#...#...#...#.D.###
#...#...#...#...###
###################
#...#...#...#...###
#...#...#...#.U.###
#R..#.U.#..L#...###
###################
###################
			9x9 Quantic Platform
l..#############..u
...#############...
..L#############U..
###################
###################
###################
###################
..D#############R..
...#############...
d..#############..r
			One Long Road
R.................#
#################.#
................#.#
.##############.#.#
.#............#.#.#
.#.############.#.#
.#..............#.#
.################.#
..................#
###################
			Hard Choice
R.................#
#################.#
R...............#.#
.##############.#.#
.#R...........#.#.#
.#.############.#.#
.#R.............#.#
.################.#
R.................#
###################
			The Best Way
###################
#LrrrrrrrulllllllR#
#drdrdrdrdldldldld#
#dudududududududud#
#rurururu.ulululul#
#rdrdrdrd.dldldldl#
#ududududududududu#
#ururururululululu#
#LrrrrrrrdlllllllR#
###################
			Hypersonic
#R...............D#
#.#.#.#.#.#.#.#.#.#
#.................#
#.#.#.#.#.#.#.#.#.#
#.................#
#.#.#.#.#.#.#.#.#.#
#.................#
#.#.#.#.#.#.#.#.#.#
#U...............L#
###################
			Hypersonic Deluxe
.R...............D.
#.#.#.#.#.#.#.#.#.#
...................
#.#.#.#.#.#.#.#.#.#
...................
#.#.#.#.#.#.#.#.#.#
...................
#.#.#.#.#.#.#.#.#.#
.U...............L.
#.#.#.#.#.#.#.#.#.#
			Saturn Rings
###################
#R.......D........#
#................L#
#R................#
rrrrrrrrrrrrrrrrrrr
lllllllllllllllllll
#................L#
#R................#
#........U.......L#
###################
			GL HF
#....L#######D###D#
#.###########.###.#
#.#R..#######.....#
#.###.#######.###.#
#.....#######U###U#
#D###########....L#
#.###########.#####
#.###########...###
#.###########.#####
#....L#######U#####
			Cross
##.d.....u.....d.##
#D.d....U#U....d.D#
...d..ll###rr..d...
...u....D#D....u...
...u.....d.....u...
...u.....d.....u...
...#.....d.....#...
ll###rrD.d.Dll###rr
#R.#.....u.....#.L#
##.d.....u.....d.##
			To the Right
...................
..............r....
R.............rr...
R.............rrr..
rrrrrrrrrrrrrrrrrr.
rrrrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrr.
R.............rrr..
R.............rr...
..............r....
			Wings of Liberty
...................
...................
.U.......U.......U.
u#ddddddd#ddddddd#u
uu#ddddd#u#ddddd#uu
uuu#ddd#uuu#ddd#uuu
uuuu#d#uuuuu#d#uuuu
uuuuu#uuuuuuu#uuuuu
.....D.......D.....
...................
			Round the Clock
rrrrrrrrr#rrrrrrrrd
uR.......u.......Dd
u........u........d
u........u........d
#lllL.............d
u.............Rrrr#
u........d........d
u........d........d
uU.......d.......Ld
ullllllll#lllllllll
			Cells
###################
#R.......#.......D#
#.................#
#........#........#
####.#########.####
####.#########.####
#........#........#
#.................#
#U.......#.......L#
###################
			Shield
..#######.#######..
.########.########.
.########.########.
.#######...#######.
........L.R........
.###.###...###.###.
.##...###.###...##.
....L.###.###.R....
.##...###.###...##.
..#######.#######..
			StarCraft
...................
.#######...#######.
.#R........#D......
.#R........#.......
.#######...#.......
......L#...#.......
......L#...#U......
.#######...#######.
...................
rrrrrrrrrrrrrrrrrrr
			Xel
#R...r........d...L
#.....r......d.....
#......r....d......
#.......r..d.......
#........rd........
#........ul........
#.......u..l.......
#......u....l......
#.....u......l.....
#R...u........l...L
			4 Gates
###################
........L#R........
#u.......#.......u#
.........#.........
#u.......#.......u#
#d.......#.......d#
.........#.........
#d.......#.......d#
........L#R........
###################
			Confusion
#...#...#...#...#.L
#.#.#.#.#.#.#.#.#.#
#.#.#.#.#.#.#.#.#.#
#.#.#.#.#.#.#.#.#.#
#.#.#.#.#U#.#.#.#.#
#.#.#.#.#D#.#.#.#.#
#.#.#.#.#.#.#.#.#.#
#.#.#.#.#.#.#.#.#.#
#.#.#.#.#.#.#.#.#.#
R.#...#...#...#...#
			Bunker
########uuu########
####...........####
#L...............R#
#.................#
l.................r
l.................r
#.................#
#L...............R#
####...........####
########ddd########
			Split
#R.......l.......D#
#........r........#
#........l........#
#........r........#
#dudududu#udududud#
#........r........#
#........l........#
#........r........#
#U.......l.......L#
###################

As a codingamer,

To get the details of your score in the IDE, you can type in your console (once you played all the testcases):

console.log($(".testcase").toArray().map(x=>x.title.match(/^(.*?)(?: \(Points:(\d*)\))*$/)).map(t=>({z:t[1],x:+t[2]||0})).reduce((t,e,s,i)=>t+`${e.z}: ${e.x}\n`+(s===i.length-1?"~~~ SUM ~~~: "+i.reduce((t,e)=>t+e.x,0):""),""));

If you only care about the global score, it’s easier to submit ! :slight_smile:

5 Likes

Thanks to Counterbalance, the validators/tests are now available in a stub friendly format.

You can already check his pr till it’s approved: https://github.com/CodinGameCommunity/A-Star-Craft/pull/12/files

1 Like

Not sure that it is a bug - just to confirm: looks like part of exception in java stacktrace is erased - I see only last lines + some strange
Exception in thread “main” java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0 on line 0
at sun.reflect.NativeMethodAccessorImpl.invoke on line 62
at sun.reflect.DelegatingMethodAccessorImpl.invoke on line 43
at java.lang.reflect.Method.invoke on line 498
at com.cartser.codemachine.java.Bridge.main on line 34
Is it done intentionally?

Would you update test cases in the platform, because I still don’t see the robot information in there: http://bit.ly/2Exx8g4 For now I’ll use them from your link, thanks.

2 Likes

@dbf: If you want to have the entire stacktrace, wrap the faulty instructions into a try-catch and do some exception.printStackTrace() in the catch block.

1 Like

[notSureIfBug] are we supposed to get an updated position of the robot at each turn or only the initial layout?
My problem: when simply printing out the recieved robot coordinates, I am always getting the same values. Have I misunderstood what a “game turn” means?

No, we won’t update the format in the platform but the referee format is quite easy to use.

The grid, upper letter (UDLR) for robots, lower letter for arrows (udlr).

1 Like

You only have one game turn. You get the initial data that’s all. All you have to do is to place arrows on the map. Your robots will then move accordingly and score.

Ok, understood. Thx.

You’re right. There was a bug. We changed something to improve Java streams and it impacted that. We’re fixing it.
Thanks!

1 Like