-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules.txt
45 lines (36 loc) · 2.5 KB
/
rules.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--PL--
1. Opis gry i zasady.
Tekstowa gra w ktorej komputer (Host) losuje slowo, ktore jest izogramem (izogram jest to wyraz
w w ktorym nie powtarzaja sie zadne litery) i informuje uzytkownika (Guesser) o ilosci liter
w slowie. Uzytkownik (Guesser) stara sie zgadnac co to za slowo. Komputer (Host) po po kazdej probie
zwraca liczbe Cows & Bulls. Liczba przy slowie Cows oznacza, ze litera wystepuje w slowie, lecz na zlej
pozycji, liczba przy slowie Bulls oznacza poprawna litere na poprawnej pozycji. Gra konczy sie kiedy
liczba przy Bulls bedzie taka sama jak dlugosc slowa wylosowanego przez komputer.
Caly sens gry polega na tym, iz uzykownik w przypadku nawet otrzymania dodatniego wyniku przy Bulls, nie zna dokladnej
lokalizacji tej litery.
2. Przyklad gry.
1. sekretne slowo to KREM
2. proba LIST zwraca 0 Bulls, 0 Cows (zadna litera nie jest trafiona)
3. proba MIGA zwraca 0 Bulls, 1 Cows (litera M wystepuje lecz jest na zlej pozycji)
4. proba KIMA zwraca 1 Bulls, 1 Cows (litera K wystepuje na poprawnej pozycji, litera M
wystepuje na zlej pozycji)
5. proba KROS zwraca 2 Bulls, 0 Cows (litery K, R wystepuja na poprawnej pozycji)
6. gra konczy sie po odgadnieciu slowa KREM - 4 Bulls, 0 cows
--ENG-- Google Translator
1. Game description and rules.
A text game in which the computer (host) randomizes a word which is an isogram (an isogram is a word
in which no letters are repeated) and informs the user (Guesser) about the number of letters
in word. The user (Guesser) tries to guess what the word is. Computer (Host) after each attempt
returns the number of Cows & Bulls. The number next to the word Cows means that the letter is in the word, but on the wrong one
position, the number next to the word Bulls means the correct letter in the correct position. The game ends when
the number next to the Bulls will be the same as the length of the word drawn by the computer.
The whole point of the game is that the user, even if he gets a positive result with Bulls, does not know the exact
the location of that letter.
2. Game example.
The 1st secret word is CREAM
2nd try LIST returns 0 Bulls, 0 Cows (no letter is matched)
3rd attempt to FLASH returns 0 Bulls, 1 Cows (the letter M is present but in the wrong position)
4th KIMA attempt returns 1 Bulls, 1 Cows (the letter K is in the correct position, the letter M
is in the wrong position)
5. KROS attempt returns 2 Bulls, 0 Cows (letters K, R are in the correct position)
6. The game ends when the word CREAM is guessed - 4 Bulls, 0 cows