Repository navigation
Expand file tree
/
Copy pathtutorial.py
More file actions
134 lines (103 loc) · 2.91 KB
/
Copy pathtutorial.py
File metadata and controls
134 lines (103 loc) · 2.91 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import color as c
def play():
for i in scenes:
print(i)
input()
print(c.CLEAR)
scenes = [
"""Welcome to the tutorial
to continue press enter...""",
"""In this game you are given a random set of numbers that represent colors.\n
And your job is to guess the combination with the hints you get after each guess.\n
A black color (the number 2) tells you the number you guessed is an exact match.\n
A white color (the number 1) tells you the number you guessed is apart of the hidden combination.""",
"""This is an example playing field
X X X X X
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _""",
"""X X X X X ←─ This is the hidden combination, it will reveal at the end of the game.
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
1 2 3 3 1 ←─ here you enter your guess (each number seperated by a space).""",
"""X X X X X
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
1 2 3 3 1 | 1 2 0 0 1
↑ ↑
│ │
│ │
│ └ In this column you have your hints.
│
│
└ In this column are your guesses.""",
"""X X X X X
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
1 2 3 3 1 | 1 2 0 0 1
↑ ↑
│ │
└───┬─────┘
This means the number 1 you guessed is somewhere in the combination.""",
"""X X X X X
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
1 2 3 3 1 | 1 2 0 0 1
↑ ↑
│ │
└───┬─────┘
This means the number 2 you guessed exactly matches the number in the hidden combonatio.""",
"""X X X X X
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
_ _ _ _ _ | _ _ _ _ _
1 2 3 3 1 | 1 2 0 0 1
↑ ↑
│ │
└───┬─────┘
This means the number 3 you guessed is not in the hidden combination.""",
"""That's all you need to know to play
It would be cool of you to star the repository on git and give me feedback or suggestions via git too."""
]