Sha256: e550b9633302a046ae5770e1468bcd7e815ec83079e3c0f541e92009b759134a
Contents?: true
Size: 975 Bytes
Versions: 41
Compression:
Stored size: 975 Bytes
Contents
// The code below is a stub. Just enough to satisfy the compiler. // In order to pass the tests you can add-to or change any of this code. #[derive(PartialEq, Debug)] pub enum Direction { North, East, South, West, } pub struct Robot; impl Robot { pub fn new(x: isize, y: isize, d: Direction) -> Self { unimplemented!( "Create a robot at (x, y) ({}, {}) facing {:?}", x, y, d, ) } pub fn turn_right(self) -> Self { unimplemented!() } pub fn turn_left(self) -> Self { unimplemented!() } pub fn advance(self) -> Self { unimplemented!() } pub fn instructions(self, instructions: &str) -> Self { unimplemented!("Follow the given sequence of instructions: {}", instructions) } pub fn position(&self) -> (isize, isize) { unimplemented!() } pub fn direction(&self) -> &Direction { unimplemented!() } }
Version data entries
41 entries across 41 versions & 1 rubygems