Beispiel #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("CHARACTERFORGE - A D&D Character Generator");
            Console.WriteLine("==========================================");
            Console.WriteLine("This application currently only used as a");
            Console.WriteLine("test driver application and will generate a");
            Console.WriteLine("pre-defined character sheet");

            ICharacter character = BuildCharacter();

            CharacterSheetBuilder builder = new CharacterSheetBuilder();
            CharacterSheet        sheet   = builder.Build(character);

            IRulebook rules = new Rulebook(new RulesFactory());
            IEnumerable <IViolation> violations = rules.CheckRules(character);

            MarkdownGenerator generator = new MarkdownGenerator();
            string            output    = generator.Generate(sheet, violations);

            File.WriteAllText("charactersheet.md", output);
        }