codebreaker_captainjns 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b0bbcb7525d3b4937b6cb2678a80c1fa54108927542cf4a58526f5324678bf5
|
4
|
+
data.tar.gz: 9501b2d14586a4a91c5266de57db9f9f3f1a29daac65b85d10d015bf92712d8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0975020a624fab8c0791782ab6c08c31b401c846f406f2c601b9b29310aa241ba34d84a6b0f47abc422917c8aa9d2e03954ac0d903ea95537ec8ed3e680fac82'
|
7
|
+
data.tar.gz: 520c1fd96d082d22ed8190141ac9f0164bcd0d24b3df78e1d70f6473c2e249e30870bf4767ade22fd4caa12497f9619aa6fb8a8cbe88300058c5b9970f8128ce
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
I18n.load_path << Dir[File.expand_path('./lib/codebreaker_captainjns/config/locales') + '/*.yml']
|
1
|
+
I18n.load_path << Dir[File.dirname(__FILE__) + '/locales/*.yml']
|
@@ -1,6 +1,38 @@
|
|
1
1
|
en:
|
2
|
+
greeting: "Welcome to codebreaker!\n"
|
3
|
+
goodbye: "Goodbye!\n"
|
4
|
+
rules: "GAME RULES\n
|
5
|
+
# Codebreaker is a logic game in which a code-breaker tries to break a secret code created by a code-maker. The\n codemaker, which will be played by the application we’re going to write, creates a secret code of four numbers between\n 1 and 6.\n
|
6
|
+
# The codebreaker gets some number of chances to break the code (depends on chosen difficulty). In each turn, the\n codebreaker makes a guess of 4 numbers. The codemaker then marks the guess with up to 4 signs - + or - or empty\n spaces.\n
|
7
|
+
# A + indicates an exact match: one of the numbers in the guess is the same as one of the numbers in the secret code\n and in the same position. For example:\n
|
8
|
+
Secret number - 1234\n
|
9
|
+
Input number - 6264\n
|
10
|
+
Number of pluses - 2 (second and fourth position)\n
|
11
|
+
# A - indicates a number match: one of the numbers in the guess is the same as one of the numbers in the secret code\n but in a different position. For example:\n
|
12
|
+
Secret number - 1234\n
|
13
|
+
Input number - 6462\n
|
14
|
+
Number of minuses - 2 (second and fourth position)\n
|
15
|
+
# An empty space indicates that there is not a current digit in a secret number.\n
|
16
|
+
# If codebreaker inputs the exact number as a secret number - codebreaker wins the game. If all attempts are spent -\n codebreaker loses.\n
|
17
|
+
# Codebreaker also has some number of hints(depends on chosen difficulty). If a user takes a hint - he receives back a\n
|
18
|
+
separate digit of the secret code.\n"
|
19
|
+
menu: "Choose one of next scenarios: 'start', 'rules', 'stats', 'exit'"
|
20
|
+
choose_difficulty: "Choose difficulty: easy, medium, hard, HELL"
|
21
|
+
choose_name: "Choose your name"
|
22
|
+
win: "Congratulations! You win!"
|
23
|
+
lose: "Sorry, you lose. Maybe another time."
|
24
|
+
wrong_difficulty: "There is no such difficulty. Please choose one from listed"
|
25
|
+
wrong_name: "Choosen name is invalid. Name must be between 3 and 20 characters.\nPlease choose another one"
|
26
|
+
wrong_process: "There is no such command or your number is invalid. You can try use hint or exit"
|
27
|
+
wrong_run: "You have passed unexpected command. Please choose one from listed commands"
|
2
28
|
easy: "Easy"
|
3
29
|
medium: "Medium"
|
4
30
|
hard: "Hard"
|
5
31
|
hell: "HELL"
|
6
|
-
no_hints: "You have no hints"
|
32
|
+
no_hints: "You have no hints"
|
33
|
+
game_process: "%{attempts} attempts and %{hints} hints left. Guess a secret code"
|
34
|
+
secret: "The secret code was %{secret}"
|
35
|
+
save: "Print 'save' if you want to save your result: "
|
36
|
+
game_over: "Game Over"
|
37
|
+
stats: "Player %{name} played with difficulty level %{difficulty} (%{att_total} attempts, %{hints_total} hints) and won with %{att_used} attempts and %{hints_used} hints used."
|
38
|
+
no_stats: "Sorry, you have not any saves yet."
|