Tag Archives: Shakespeare

Make a Shakespeare insult generator in C#

This example shows how to build a Shakespeare insult generator by selecting one word from each of three arrays and combining the results. The following code shows the arrays (with many values omitted to save space). // The insult pieces … Continue reading

Posted in arrays, miscellany, strings | Tagged , , , , , , , , , , , , , , | Leave a comment

Rearrange text and format it to initialize variables in C#

This example takes three columns of strings, rearranges them so the values in each column are together, and reformats the results to produce text that you can use to initialize variables. The Shakespeare Insult Kit contains a table holding three … Continue reading

Posted in strings, variables | Tagged , , , , , , , , , , , , , | Leave a comment