This is an implementation of the Omni4 game as a discord bot.
Omni4 is a variation of Connect 4, but instead of only allowing straight lines and diagonals it allows lines in any direction (omnidirectional, hence the name).
Below is a reference sheet of what counts as a 4-long line:
To play it, you can either add my bot to your server, or host it on your bot.
You can start a game with /omni4 <opponent>, or you can specify yourself as the opponent to play against yourself
To host it on your own bot, you will need to install node.js.
- Clone the repository with
git clone https://github.com/SimonDMC/omni4or download the code - Add a file called config.json in the root directory as below and add the bot token and application id (which can be found in the General Information tab of your discord application)
{
"token": "your bot token here",
"clientId": "your application id here"
}- Open a command prompt in the root of the project and run the following commands:
npm i
node ./deploy_commands.js
node ./index.jsAfter that, your bot should go online.
