Exemple #1
0
        private static void DrawEdgeData(Edge edge, int numberOfPositions)
        {
            for (var positionCount = 1; positionCount <= numberOfPositions; positionCount++)
            {
                var story = edge.GetStoryOnPosition(positionCount);

                Console.Write(" {0} ", OnesLib.GetStoryText(story));
            }
            Console.Write(" {0} ", OnesLib.GetStoryText(edge.CompleteStory));
            Console.WriteLine();
        }
Exemple #2
0
        public static void Main()
        {
            var edge = GetStartingEdge();

            DrawEdge(edge);

            var input = AskPlayerToMove();
            var positionToMovefrom = OnesLib.ParsePositionToMoveFrom(input);

            edge.MoveStoryOn(positionToMovefrom);
            DrawEdge(edge);

            Console.ReadKey();
        }