A web application for testing Breakthrough 6x6 AI and competing with your friends.
-
Create a copy of
.env.example
called.env.local
and configuring each value as follows:Name Description NEXTAUTH_URL
Leave as http://localhost:3000
for local development.NEXTAUTH_SECRET
A random string used for authentication. Run openssl rand -base64 32
to generate a new one.GITHUB_ID
The client ID of your GitHub OAuth app. GITHUB_SECRET
The client secret of your GitHub OAuth app. ABLY_SECRET
The secret key of your Ably app. For more information about NextAuth.js configuration, see the documentation.
-
Install dependencies:
pnpm install
-
Start the development server:
pnpm dev
Open http://localhost:3000 with your browser to see the result.
The easiest way to deploy this application is to use Vercel.
- Sign in with your GitHub account.
- Create a new game.
- Share the game link with your friend.
- Click "Switch View" to invert the board.
- Click "Reset" to start a new game.
- Upload your AI as a Python file and click "Bot move" to make a move. Your Python file should contain
PlayerAI
class with amake_move()
method accepting the board state and returning a move. Your Python file should also only use standard libraries andutils.py
provided in the class. No need to uploadutils.py
as the module is stored statically inpublic/utils.whl
. If there is any update to theutils.py
, please recompile them into wheel file and replace the one in thepublic
directory.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.