File tree Expand file tree Collapse file tree 6 files changed +12
-5
lines changed Expand file tree Collapse file tree 6 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 55use function cli \line ;
66use function cli \prompt ;
77
8+ const ROUND_COUNT = 3 ;
9+
810function greeting (): string
911{
1012 line ('Welcome to the Brain Games! ' );
Original file line number Diff line number Diff line change 44
55use function BrainGames \Engine \startGame ;
66
7+ use const BrainGames \Engine \ROUND_COUNT ;
8+
79const RULES = 'What is the result of the expression? ' ;
8- const ROUND_COUNT = 3 ;
910
1011function startBrainCalc (): void
1112{
Original file line number Diff line number Diff line change 44
55use function BrainGames \Engine \startGame ;
66
7+ use const BrainGames \Engine \ROUND_COUNT ;
8+
79const RULES = 'Answer "yes" if the number is even, otherwise answer "no". ' ;
8- const ROUND_COUNT = 3 ;
910
1011function startBrainEven (): void
1112{
Original file line number Diff line number Diff line change 44
55use function BrainGames \Engine \startGame ;
66
7+ use const BrainGames \Engine \ROUND_COUNT ;
8+
79const RULES = 'Find the greatest common divisor of given numbers. ' ;
8- const ROUND_COUNT = 3 ;
910
1011function startBrainGcd (): void
1112{
Original file line number Diff line number Diff line change 44
55use function BrainGames \Engine \startGame ;
66
7+ use const BrainGames \Engine \ROUND_COUNT ;
8+
79const RULES = 'Answer "yes" if given number is prime. Otherwise answer "no". ' ;
8- const ROUND_COUNT = 3 ;
910
1011function startBrainPrime (): void
1112{
Original file line number Diff line number Diff line change 44
55use function BrainGames \Engine \startGame ;
66
7+ use const BrainGames \Engine \ROUND_COUNT ;
8+
79const RULES = 'What number is missing in the progression? ' ;
8- const ROUND_COUNT = 3 ;
910
1011function startBrainProgression (): void
1112{
You can’t perform that action at this time.
0 commit comments