see on television a competition, where it is to form words. These words may be a number of variables, initial letters, but once they got the first word, the length of the words is fixed. The competition seeks to find words that begin with the first letter of the first initial, is the same length as the original word, but that no
of the letters in the order they are in the first word is not repeated.
For example, suppose we play (by phone is the competition), and the first word (which was initially given on television) is
BALL
Now we know we have to form words starting with ‘P’, which must be six letters, and also, with the following restrictions: you can no longer get in the new word ‘E’ in the second letter, an ‘L’ in the third, an ‘O’ in the fourth, a ‘T’ in the fifth and an ‘A’ on the last letter. What word can put? To me it occurs to me ‘Pasta’
So if that is the word chosen by the contestant will have
BALL
PASTA
Here then start over problems. Now the third word must not have nor an ‘A’ or ‘E’ in the second letter, or ‘S’ or ‘L’ in the third position, or ‘O’ or ‘T’ in the fourth position, nor ‘ A ‘or’ T ‘in the fifth position, nor’ A ‘or’ S ‘in the sixth. Restrictions grow word by word. Consider some other … For example ‘STONE’, but does not work, because it ends in ‘A’ and you’re in sixth place (in ‘BALL’) that ‘A’. Consider some other … ‘rot’. It seems that yes it can be put … Here
BALL
PASTA
rot
And so on. The game-like leaves room has increasing restrictions and becoming increasingly difficult to put a word. There must come a time when you can no longer put any. For each word set, make money, I think to be doubled, so you can get to an interesting amount.
So far the game. When I saw it I thought it would be easy to make a program to look in a dictionary words and given the constraints, I was saying what words would be possible to. Should not be a difficult program to do. but the question was, where I would take a dictionary with many terms to be used? Coincidentally that day, thinking how to make, I met the “Twin” (Jesus Ortega, also known as Yixus), which has been (or is) the national Scrabble champion. Twin thesis was precisely on a program to play scrabble and he therefore had ample dictionary, which, to my idea platicarle shared so that this program could be.
When I got home found that Jesus had sent me the file with 449,305 words, nearly half a million. Negligible … So, I set to work and in a couple of hours I found how to do searches, increasing restrictions required by the game.
As an example, my program
If you see this idea to work, write me at morsa@la-morsa.com and we will send your mail program (includes translations): Install the program running the executable. This process is all automatic and will eventually have an icon that giving double click, run the software. Then you will find a very simple menu: ‘Game’ and ‘Help’. You can usually start the game or ask to make a new game. Place the first word in the box that says
Word Contest
This is the first word. Now you can tell the program by clicking on the ‘Search’ button, which gives you a different word at first, considering the restrictions placed initially. Consider the original example, where the initial word is
BALL
If we look, we give a lot of words … From here chose, for example, ‘PANZON’. Thus, the game is as follows:
BALL PANZON
We can write the word in the box ‘word game’ or, highlight the word with the mouse and double click. pass the word to the game window. It can be seen that the program found 796 words that can be put there. Now try a second search, which therefore will be more restrictive than before and we will, definitively establishing, fewer words … It gives us 371 words. Choose PICADO and placed as the third word:
BALL
PANZON
PICADO
Let. A new search and we … 170 words I can put … I chose PLATES …
BALL PANZON
PICADO
PLATES
A search more and get now only 36 words … We chose BECAUSE and put it in the game.
BALL PANZON
PICADO
PLATES FOR
We a search and found only 9 words … I choose FIRST and put it in the game
BALL PANZON
PICADO
PLATES FOR FIRST
Let us search more … Great! the program found two … I put childish …
BALL PANZON
PICADO
PLATES FOR FIRST
childish
A search more gives no more words … But the system gave us seven words and we did not even think …
playful Challenge
Make a program to do what my program does, according to specifications ls raised. The winner of a cup with the logo of The Walrus and Microsoft, which is supporting these challenges will be playful. There could be additional prizes (shirts, hats, etc.), but what matters is here precisely the work of programmers. We can say, as on other occasions, that these challenges are bona fide, where it is intended that all learn. Those who participate must deliver its program source and executable code, and if possible, a brief explanation of what they did. The winner is the first to deliver than others and that the program meets the specifications of the problem. The final decision is mine and believe me, is always done in good faith.
This program aims to help to play this game on television. I do not know the conditions of the game and if it is valid or not help computer. I do not know the procedure to compete. Apparently you have to call and send a message by phone. Perhaps there take the contestant. I do not know.
No comments:
Post a Comment