# Logik game

Letter game Logik is a two player game, which has the following rules:

1. The first player thinks five-letter word in which no letter is not

repeated.

2. The second player writes a five-letter word.

3. The first player answers two numbers - the first number indicates how many letters written word coincides with the imaginary word, and is also on the correct position; the second number indicates how many letters written word is contained in the imaginary word, but is not the right place.

4. Steps 2 and 3 are repeated until the second player imaginary word guess.

Recording one game of two friends looked like this:

SONET 1 2

MUDRC 0 2

PLAST 0 2

KMOTR 0 4

ATOLY 1 1

DOGMA 0 2

The next move was meant by the word guessed. Determine which word

it was.

Our presented solution contains a program in PHP language, which will solve the given combination of letters - by brute force, quickly and painlessly.

1. The first player thinks five-letter word in which no letter is not

repeated.

2. The second player writes a five-letter word.

3. The first player answers two numbers - the first number indicates how many letters written word coincides with the imaginary word, and is also on the correct position; the second number indicates how many letters written word is contained in the imaginary word, but is not the right place.

4. Steps 2 and 3 are repeated until the second player imaginary word guess.

Recording one game of two friends looked like this:

SONET 1 2

MUDRC 0 2

PLAST 0 2

KMOTR 0 4

ATOLY 1 1

DOGMA 0 2

The next move was meant by the word guessed. Determine which word

it was.

**Note:**Our presented solution contains a program in PHP language, which will solve the given combination of letters - by brute force, quickly and painlessly.

**Result****Leave us a comment of example and its solution (i.e. if it is still somewhat unclear...):**

**Showing 0 comments:**

**Be the first to comment!**

#### To solve this example are needed these knowledge from mathematics:

## Next similar examples:

- Hockey players

After we cycle five hockey players sit down. What is the probability that the two best scorers of this crew will sit next to each other? - Numbers

How many different 7 digit natural numbers in which no digit is repeated, can be composed from digits 0,1,2,3,4,5,6? - Playing cards

How many possible ways are to shuffle 6 playing cards? - Word

What is the probability that a random word composed of chars H, T, M, A will be MATH? - Phone numbers

How many 7-digit telephone numbers can be compiled from the digits 0,1,2,..,8,9 that no digit is repeated? - Rectangles

How many rectangles with area 3002 cm^{2}whose sides is natural numbers are? - Shelf

How many ways are there to arrange 6 books on a shelf? - Lock

Combination lock will open when the right choice of 3 numbers (from 1 to 25 inclusive) is selected. A. How many different lock combinations are possible? B. Is he combination lock named appropriately? - School trip

Class has 17 students. What different ways students can be accommodated in the hostel, where available 3× 2-bed, 1× 3-bed and 2× 4-bed rooms. (Each room has its own unique number) - Toys

3 children pulled 12 different toys from a box. Many ways can be divided toys so that each children had at least one toy? - Vans

In how many ways can 5 shuttle vans line up at the airport? - Pairs

At the table sit 8 people, 4 on one side and 4 on the other side. Among them are 3 pairs. Every pair wants to sit opposite each other. How many ways can they sit? - Subsets

How many are all subsets of set ?? - Kids

How many different ways can sit 8 boys and 3 girls in line, if girls want to sit on the edge? - Chess

How many ways can select 4 fields on classic chess board with 64 fields, so that fields don't has the same color? - 7 heroes

5 heroes galloping on 5 horses behind. How many ways can sort them behind? - Flags

How many different flags can be made from colors purple, yellow, red, white, blue, green, orange so that each flag consisted of three different colors?