Created
July 26, 2014 10:50
-
-
Save FrankHB/4d809c83f1ae8cdaae89 to your computer and use it in GitHub Desktop.
daze_player
This file contains 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
// http://tieba.baidu.com/p/3172996151 | |
struct daze_player : player | |
{ | |
state s; | |
virtual state play( std::size_t milisecond_left, const std::vector< state > & self_history, const std::vector< state > & opponent_history ) | |
{ | |
s = (((millisecond_left + std::size_t('d')) * self_history.size() / (opponent_history.size() + std::size_t('a')) + std::size_t('z')) + std::size_t('e') * (self_history.size() ^ opponent_history.size())) % 3; | |
return s; | |
} | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment