Computer Science Canada Hangman |
Author: | Amarylis [ Tue May 01, 2012 5:33 pm ] |
Post subject: | Hangman |
Since I have now handed this in, I'm allowed to share the code without being accused of plagiarism. It's really just a simple game of hangman with 2 themes, and the option for you to make your own themes. Works with letters of any length, provided that it doesn't go off the screen. Here you go~ |
Author: | chipanpriest [ Wed Oct 31, 2012 7:06 pm ] | ||
Post subject: | Re: Hangman | ||
When I ran your program, I created some words. When I looked in the containing folder, I found heythere.WDBNK. Can Turing make a type of file and read from it? I thought turing could only support .txt files. So could you type:
Would it work and be able to read from those files? |
Author: | TerranceN [ Wed Oct 31, 2012 11:17 pm ] | ||
Post subject: | RE:Hangman | ||
You can open whatever files you want in turing. Using read and write you can read/write files in binary, and using char and int you can read/write in increments of 1 and 4 bytes at a time. Just remember that files are just data, there's nothing magical about supporting a file type other than learning its specification. As an example, I just made this bmp reader:
|