i would like to code a single player game where at each turn a player has to write a letter on a grid. In response the computer would write a letter and so on. As soon as a word is created as a result of writing a letter, the player gets as many points as the no of letters in the word. how would i code it.
closed as not a real question by Tetrad♦ Dec 26 '12 at 4:03
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
That’s a pretty easy almost-infinite loop. The main loop is something very common in game programming.
In Pseudo code:
As you see, you need several components here: