Last active
August 23, 2016 11:55
-
-
Save ikuwow/2bcc552c99e998e5bd887248ad477756 to your computer and use it in GitHub Desktop.
PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* teratail - Q&A community for every thinking engineer | |
* | |
* @author Leverages Co. Ltd. Technology Media Lab. | |
* @since 2014/07/16 | |
*/ | |
function teratail(ThinkingEngineer $you) | |
{ | |
$question = new Question($you->problems); | |
$you->postQuestion($question); | |
while (!$question->resolved) { | |
$answers = $you->getAnsweres(); | |
if ($you->resolveQuestion($answers)) { | |
$you->appreciate("Thank you!"); | |
break; | |
} | |
} | |
return $you->evolve(); | |
} |
しました
実行できなくてもいいよね?
一応置いておきます..
function teratail(ThinkingEngineer $you){
global $world;
$question = new Question($you->problems);
$you->postQuestion($question);
while( $answer = $you->fetchAnswer() ){
if( !$you->resolve($question, $answer) ) continue;
$you->appreciate("Thank you!");
break;
}
$world->exp++;
}
はい
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
teratailのところを機能説明にしたい
最悪4行目消すか…