Code Monkey home page Code Monkey logo

slackttt's Introduction

SlackTTT

Tic Tac Toe Plugin for Slack written with Java Spring running on AWS

Commands:

/ttt @username - This initiates a new game within the current channel. After this command, a new game is initiated and any of the players (either @username or the user who started the game) can make the first move. Please type for example: "/ttt @agubba" where agubba is the usename registered within the channel. You can play against yourself. If your username is "John", just type in "/ttt @John". A weakness of the app is it does not recognize players who do not exist or usernames not present within the app. So please start a game with a valid username. After that, any of you can make a move with the command below, and play the game.

/ttt status - This shows the game board and status of the game in the current channel. If no game exists, it asks if you would like to start one. Simply type "/ttt status" and if you are in the channel, only you via a slash message will receive a status of the current game,

/ttt move - Once the game is in motion, a player who is part of the game in a given channel can make a move. Examples of this command using the below commands are: "/ttt Upper-Left" "/ttt Middle-Center" "/ttt Lower-Right"

The moves are as follows: (Only these can be used as moves)

Upper-Left, Upper-Center, Upper-Right, Middle-Left, Middle-Center, Middle-Right, Lower-Left, Lower-Center, Lower-Right

To play, you MUST first create a game or else app will let you know. Then ANY player who is in the game (either the user who requested the game or the user the requested user requested to play against) can make the first move with the above "/ttt move" command. Then messages will be sent to the channel anytime someone plays and a user can also request a status. Once the game is over via a stalemate or a player wins, the app will let the channel and reopen the channel to add a new game. That would complete the life cycle of a game.

slackttt's People

Contributors

agubba3 avatar

Watchers

James Cloos avatar  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.