Giter Club home page Giter Club logo

snatchv2's Introduction

This project is now archived since Heroku removed support for its free plans.

ONLINE SNATCH

This describes the functionality provided by the Python script I've created.

List of known issues is here

This script parses the input passed by the user. There are four possible cases, with possible subcases.

The first case is where the user wishes to draw tiles from the bag. The user may input as many dots as the number of words they wishes to draw such that the minimum number of dots is 1 and the maximum number of dots is 7.

The second case is where the user wishes to send a chat message to the group. The message needs to begin with a "/" (just the mark, without the quotes, duh) and may be as long as needed.

The third (and the most important) case is where the user wishes to make or snatch a word. The minimum allowed word size is 6, normal snatch rules apply. However, this program is not built to check if attempted words are derivatives of existing word (Derivative rule) or fall under the 5+1/4+2/3+3 violation (Composition rule). Word list used is CSW15. The message just needs to be the word itself - no frills.

The fourth case is for a user to retract their or someone else's word if it is pointed out to be a violation of the Derivative or Composition rule. The message needs to be the word prepended by a "-". Withdrawing words is slightly shitty - the withdrawn word goes into the centre thus if the word was initially snatched, the user from whom the word was snatched needs to remake the word. Shitty, I know. Improve it, when you can.

The fifth (and the last, for now) case is to reset the game. Enter ~ to reset the game.

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.