Skip to content
Entreco edited this page May 25, 2018 · 9 revisions

Welcome to the reversi-bot wiki!

Using these samples, you can create your own Bot for Reversi/Othello. There is a Referee app, that uses Firebase to push the board to remote players.

1. Download Referee from PlayStore

Download Android App

You can run it on:

  • any device running Android 23 or higher
  • any simulator running Android 23 or higher

Use it to test your bot, or (manually) play against your own bot

2. Create your own Bot

Follow the instructions for setting up your bot:

3. Rules

Submit moves to /players/<uuid>/matches/<matchId>/move

A valid move is exactly this format: "{\"row\":0, \"col\":0}"

You have 8 seconds, to submit a valid move. This includes network time.

E.g. this whole flow needs to succeed in less than 8 seconds:

  1. Referee writes to your moves node
  2. Referee starts counting
  3. Firebase will push updates to your Bot
  4. Calculate the best move
  5. Write your move to Firebase
  6. Firebase will push your move to the Referee
  7. Referee receives your move

No Authentication, so be careful

To simplify the whole flow, authentication is disabled. E.g. everyone has all rights As a rule of Thumb, only write to nodes below your own player node:

https://reversi-wars.firebaseio.com/players/<your uuid>