We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02b49cc commit 84a223dCopy full SHA for 84a223d
bin/brain-gcd
@@ -0,0 +1,20 @@
1
+#!/usr/bin/env php
2
+<?php
3
+
4
+use function BrainGames\Engine\getUserName;
5
+use function BrainGames\Engine\checkAnswer;
6
+use function BrainGames\BrainGcd\getGcd;
7
8
+$autoloadPath1 = __DIR__ . '/../../../autoload.php';
9
+$autoloadPath2 = __DIR__ . '/../vendor/autoload.php';
10
11
+if (file_exists($autoloadPath1)) {
12
+ require_once $autoloadPath1;
13
+} else {
14
+ require_once $autoloadPath2;
15
+}
16
+//получим имя пользователя
17
+$userName = getUserName();
18
+//
19
+checkAnswer($count = 3, $userName, $path="gcd");
20
0 commit comments