Skip to content

Instantly share code, notes, and snippets.

@FrankHB
Created July 26, 2014 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrankHB/4d809c83f1ae8cdaae89 to your computer and use it in GitHub Desktop.
Save FrankHB/4d809c83f1ae8cdaae89 to your computer and use it in GitHub Desktop.
daze_player
// 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