Skip to content

Commit 84a223d

Browse files
committed
bin/brain-gcd
1 parent 02b49cc commit 84a223d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

bin/brain-gcd

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)