|
Richard thanks.
One thing I do not see direct. you said : A
direction could be represented by a pair of integers
dx,
dy such that |dx|+|dy| = 1. It could also be
represented
by a Point with integer components.
for me a direction is the direction the robot is facing so something like north or east. the challenge also wants a output like this : test11_MovesTheRobotForward1SpaceInTheDirectionItIsPointingIncreasesTheYCoordinateOneWhenFacingNorth | result | result := robotSimulatorCalculator moveDirection: 'north' position: (Dictionary new add: 'x' -> 0; add: 'y' -> 0; yourself) instructions: 'A'. self assert: result equals: (Dictionary new add: 'direction' -> 'north'; add: 'position' -> (Dictionary new add: 'x' -> 0; add: 'y' -> 1; yourself); yourself) so how do I "convert" the point you are using to the text. Or do I misunderstood you somewhere wrong. Roelof Op 8-4-2019 om 10:57 schreef Richard O'Keefe:
|
- [Pharo-users] difference between double dispatch a... Roelof Wobben
- Re: [Pharo-users] difference between double d... K K Subbu
- Re: [Pharo-users] difference between doub... Roelof Wobben
- Re: [Pharo-users] difference between doub... Roelof Wobben
- Re: [Pharo-users] difference between ... Richard O'Keefe
- Re: [Pharo-users] difference betw... Roelof Wobben
- Re: [Pharo-users] difference... Richard O'Keefe
- Re: [Pharo-users] differ... Roelof Wobben
- Re: [Pharo-users] differ... Roelof Wobben
- Re: [Pharo-users] di... Richard O'Keefe
- Re: [Pharo-users] di... Roelof Wobben
- Re: [Pharo-users] di... Richard O'Keefe
- Re: [Pharo-users] di... Roelof Wobben
- Re: [Pharo-users] di... Richard O'Keefe
- [Pharo-users] [OT] (... Esteban Lorenzano
- Re: [Pharo-users] [O... [email protected]
- Re: [Pharo-users] [O... [email protected]
- Re: [Pharo-users] [O... Mariano Martinez Peck
- Re: [Pharo-users] [O... Esteban Lorenzano
