Twirthie Downloads
- [ Home ]
Download Instructions
Select your operating system: Windows, Mac, or Linux.
Installation Instructions
- You must first install the Java JDK from Oracle
- Extract Twirthie files to desired folder (see Step 6 for Mac)
- For Linux/Mac, open a terminal
- For Windows, use the command-line
- When entering commands displayed in bold below, be sure to press Enter
- To unpack files on your Mac:
- Make sure file downloaded is in an empty folder
- Enter the following command:
- tar -zxvf twirt.tar.gz
- Alternatively, you can use your Mac's built-in download/extract feature
- That way you don't have to enter the above tar command in bold
- Navigate to the folder containing extracted files
- For Linux/Mac:
- Enter the following command:
- ./twirt.sh
- For Windows:
- Enter the following command:
- twirt
- If you wish to generate multiple sentences, use a command-line argument:
- For Steps 8 and 9 above, type a space and then a number
- So to generate 3 sentences, enter one of the following 2 commands:
- ./twirt.sh 3
- twirt 3
- If you wish to modify the source code and need to echo your input:
- Enter one of the following 2 commands:
- ./twirt.sh 0 > temp.txt
- twirt 0 > temp.txt
- To view the output generated above, edit the temp.txt file
- If you click on Java Source in order to modify the source code:
- Version is identical to .java files bundled with .class files
- Be sure to rename it, omitting the .txt extension
- Tip: to repeat the previous terminal command, use this method:
- Press Up Arrow
- Press Enter
- I hope you have as much fun running Twirthie as I had coding it!