lightvector / arimaa-server

Arimaa server
Other
9 stars 2 forks source link

Autodetect bot bashing #12

Open mattj256 opened 9 years ago

mattj256 commented 9 years ago

Set up preconfigured criteria, autodetect when a player satisfies that criteria, and display it somewhere. For example:

http://arimaa.com/arimaa/forum/cgi/YaBB.cgi?board=talk;action=display;num=1147634070;start=180#180

lightvector commented 8 years ago

This might require the server knowing about and having a dedicated list of server bots first.

mattj256 commented 8 years ago

Is it useful for the server to know who's a bot and who's a human?

Arimaa.com enforces that the username starts with "bot_" if and only if this is a bot account. I recommend you have some policy in place so the server can figure out who's a bot and who isn't, even if there aren't any immediate plans to use that information.

lightvector commented 8 years ago

I assume you haven't read the code. :)

There is an is_bot field stored with each account, and the site displays a string like "username (bot)" it's a bot. It also displays a string "username (guest)" for guests who logged in without an account. Etc.

Botness isn't used for anything yet. It probably should be, but at least for statistics we can decide what statistics we want later.

On Mon, Jan 4, 2016 at 12:11 PM, mattj256 notifications@github.com wrote:

Is it useful for the server to know who's a bot and who's a human?

  • Will the server keep separate statistics for HvH, HvB, BvH, BvB?
  • Will there be any policy differences? For example, as far as I know arimaa.com doesn't allow a bot to join an existing game. (The bot has to sit down at the table first.)

Arimaa.com enforces that the username starts with "bot_" if and only if this is a bot account. I recommend you have some policy in place so the server can figure out who's a bot and who isn't, even if there aren't any immediate plans to use that information.

— Reply to this email directly or view it on GitHub https://github.com/lightvector/arimaa-server/issues/12#issuecomment-168738733 .

mattj256 commented 8 years ago

Wait, you're expecting me to read code? :)

This might require the server knowing about and having a dedicated list of server bots first.

I guess I misunderstood this. The server could draw a distinction between server bots and other bots, or not. In any case this is really a badge system: each time a game is finished you check whether or not any of the badge criteria were satisfied. If yes update state somewhere.

I think it's great that you could generate HvB statistics. No need to do that right now as it can always be done later.