-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhowToPlay.py
75 lines (71 loc) · 4.21 KB
/
howToPlay.py
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
import time
import random
from colorama import Fore,Back,Style,init
init()
import os
import sys
from subprocess import call
import platform
def flush_input():
try:
import msvcrt
while msvcrt.kbhit():
msvcrt.getch()
except ImportError:
import sys # for linux/unix
import termios
termios.tcflush(sys.stdin, termios.TCIOFLUSH)
oS = platform.system()
if oS == 'Windows':
clear = lambda: os.system('cls')
else:
clear = lambda: os.system('clear')
clear()
time.sleep(0.1)
flush_input()
print(Fore.GREEN + 'Welcome to The Spelling Game! (key = (► = press enter))')
print(Fore.YELLOW + '''-----------------------------------------------------------------------------------------------------------------------
This is where a word is shown on your screen which then disappears after a few seconds.
You then have to type that word in afterwards when prompted to.
Gain points by answering correctly and compare your scores to previous sesssions''')
go = input(Fore.GREEN + '►')
print(Fore.BLUE + '''-----------------------------------------------------------------------------------------------------------------------
The time at which the word is shown for is based on your SELECTED DIFFICULTY and the LENGTH OF THE WORD given,
SELECTED DIFFICULTY is chosen when starting a game.
You can also practice hard difficulty but stats will not be recorded''')
go = input(Fore.GREEN + '►')
print(Fore.MAGENTA + '''-----------------------------------------------------------------------------------------------------------------------
For both types of difficulty, the harder the difficulty selected the more points gained per correct question,
so you could do a combo for the maxium points but BEWARE, you will also lose more points.''')
go = input(Fore.GREEN + '►')
print(Fore.LIGHTYELLOW_EX + '''-----------------------------------------------------------------------------------------------------------------------
You only have a certain amount of time to answer each question. Either per word or letter based on your input method.
This time is affected by LENGTH OF WORDS and OVERALL DIFFICULTY which can be changed in settings.''')
go = input(Fore.GREEN + '►')
print(Fore.LIGHTMAGENTA_EX + Style.DIM + '''-----------------------------------------------------------------------------------------------------------------------
SETTINGS: change how the game plays and feels to your likeing. Here you can also clear all user data.
Input method: enter either a word or letter at a time. Entering a word is harder because you will have less effective time to answer,
but it is more NATURAL. Letter at a time allows for you to easily MEMORISE a word.''')
go = input(Fore.GREEN + Style.NORMAL + '►')
print(Fore.CYAN + '''-----------------------------------------------------------------------------------------------------------------------
ANYWORD difficulty is a special selectable difficulty which can be disabled in settings.
It contains over 4000000 words from the English language.''')
go = input(Fore.GREEN + '►')
print(Fore.RED + '''-----------------------------------------------------------------------------------------------------------------------
STATS: at the end of every session, the current, previous and best session's stats will be displayed.
Use this to improve and see your spelling ability.''')
go = input(Fore.GREEN + '►')
print(Fore.LIGHTCYAN_EX + '''-----------------------------------------------------------------------------------------------------------------------
You can create and manage your own set of words.
Play your own set of words to improve your spelling on a certain set of words!''')
go = input(Fore.GREEN + '►')
print(Fore.LIGHTGREEN_EX + '''-----------------------------------------------------------------------------------------------------------------------
Play levels to try and beat (spell all words correctly) sets of words which vary in difficulty.
Getting even one question wrong results in you having to starts over again!
(User data here can also be wiped in settings alongs with preset stats)
(For medium levels and higher, the input method is controlled by the computer)''')
print()
go = input(Fore.GREEN + 'Press enter to leave: ')
clear()
call(['python', 'classicMode.py'])
sys.exit()