Recall that the game of Ghost is played by having each player add one letter at a time. The player who completes a word greater than two characters in length or adds a letter which makes the word not a fragment of any existent word loses and gains a point.
1. Program prompts user for number of AI players and number of human players
2. Starting player is randomly selected.
3. Each time a letter is added which brings the word String's length to greater than two, the String is passed to WORDS to check if it is a valid Latin word. If it is a complete word the player who finished the word loses. If it is not a part of any valid word, the player loses. If it is part of a valid word, the game continues.
4. As soon as the word is completed, the loser's point will be added and details about the word (e.g. a noun's case, gender, or meaning) will be printed out (I plan to make this as a sort of educational aid)
5. Players are eliminated at 5 points. Program can be exited at any time by entering "-1".
(Note: I know I will need to use a fusion of both WORDS and a Latin word list in order to make the game work, since WORDS does not recognize partial words. For example, pue, although part of the word puella, will return as unknown.)
The hardest part of this will be getting the I/O with WORDS to work. WORDS source code is available but the problem is that it is written in Ada, which I have never worked with. A friend of mine told me that it might be possible to communicate between programs (WORDS the executable is a command-prompt style program, where the user enters a word and the information is returned) using BASH, but I have no experience with that either. I'm not sure what to do here. Any help you can afford would be greatly appreciated, as I think this would be a great game once completed.
EDIT: This is a better link for WORDS. You can download the source code here. http://users.erols.c...taker/words.htm
This post has been edited by rawfrijoles: 27 November 2009 - 01:47 PM