Coder Social home page Coder Social logo

tictactoe's Introduction

TicTacToe

This repository contains a Discord Bot which allows you to play TicTacToe against other players or an AI using an straightforward interface (TicTacToe.Discord).

It also contains a simple TicTacToe library (TicTacToe.Game) and a CLI which allows you to play TicTacToe against a very bad AI (TicTacToe.Cli).

Setup

Add the official bot

You can add the bot to your server via this link: https://discord.com/api/oauth2/authorize?client_id=899279391346016286&permissions=137439341632&scope=bot%20applications.commands

Self host

Alternatively you can download the latest release from the Releases tab and host it yourself.
Make sure to provide the settings via environment variables or through the appsettings.json file.

You can also run this app in a docker container, a Dockerfile is already ready to be used.

Usage

  1. Adjust the settings
  2. Invite the bot to your server
  3. Use the /tictactoe command to start a game of Tic Tac Toe against the AI or /tictactoe @opponent to start a game of Tic Tac Toe against another player.
  4. Example: /tictactoe @Dusty

Build

Visual Studio

  1. Open the solution with Visual Studio 2022
  2. Build the solution
  3. (Optional) Publish the solution

.NET CLI

  1. dotnet restore "TicTacToe.Discord/TicTacToe.Discord.csproj"
  2. dotnet build "TicTacToe.Discord/TicTacToe.Discord.csproj" -c Release
  3. (Optional) dotnet publish "TicTacToe.Discord/TicTacToe.Discord.csproj" -c Release

Output directory: TicTacToe.Discord\TicTacToe.Discord\bin\Release\net5.0
Publish directory: TicTacToe.Discord\TicTacToe.Discord\bin\Release\net5.0\publish

Credits

This project uses the following open-source projects:

License

TicTacToe is licensed under the MIT License, see LICENSE.txt for more information.

tictactoe's People

Contributors

thedusty01 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.