Skip to content

Commit

Permalink
Respond to version requests
Browse files Browse the repository at this point in the history
  • Loading branch information
devill committed Mar 9, 2014
1 parent da4e781 commit fb290fc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ int main(int argc, char* argv[])
{
Player::showdown(game_state);
}
else if(action == "version")
{
cout << Player::VERSION;
}

return 0;
}
2 changes: 2 additions & 0 deletions player.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "player.h"

const char* Player::VERSION = "Default c++ folding player";

int Player::betRequest(json::Value game_state)
{
return 0;
Expand Down
8 changes: 8 additions & 0 deletions player.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
#ifndef PLAYER_H
#define PLAYER_H

#include "json.h"


class Player
{
public:
static const char* VERSION;

static int betRequest(json::Value game_state);

static void showdown(json::Value game_state);
};

#endif

0 comments on commit fb290fc

Please sign in to comment.