Skip to content

remote-control-competition instructions unclear #2164

@berson-andrew

Description

@berson-andrew

I was mentoring this problem, and the only places where the expected behavior of the drive method was specified were in comments in a code block in the instructions or through reverse engineering the test case. The code block says:

ProductionRemoteControlCar prod = new ProductionRemoteControlCar();
TestTrack.race(prod);
ExperimentalRemoteControlCar exp = new ExperimentalRemoteControlCar();
TestTrack.race(exp);
prod.getDistanceTravelled();
// => 10
exp.getDistanceTravelled();
// => 20

Even then, it is only through indirect inference that the desired behavior can be understood.

I think it should be explicitly specified that ProductionRemoteControlCar.drive() should travel 10 units and ExperimentalRemoteControlCar.drive() should travel 20.

I would be happy to make these changes myself if this issue gets assigned to me.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions