예제 #1
0
        public void Move(int offset)
        {
            if (_players.Count == 0)
            {
                throw new InvalidOperationException();
            }

            var newLocation = _locationService.AdvanceBy(Current.Location, offset);

            Console.WriteLine(Current + "'s new location is " + newLocation);

            Current.MoveTo(newLocation);
        }