Git Product home page Git Product logo

yatzybot's Introduction

YatzyBot 0.87 (21-03-2014)

A bot for playing the popular European Yatzy dice game in IRC (uses Java, PircBotX) with one or more players. Supports the following:

  • Administrative functionality with username/password login, allowing joining different servers and channels from one application instance. (0.86+)
  • Rolling all dies.
  • Rolling particular dies (just specify numbers on the dies, e.g., 5 6 1 1).
  • Holding particular dies (again, just specify the numbers, not the die indices).
  • Holding all of particular dies (e.g., 2 3 will match all of the 2 dies and all of the 3 dies).
  • Full score tracking, will choose the best dies to use automatically for the chosen scoring.
  • Viewing of all possible scoring, including scores.
  • Output after each roll shows which are good scorings, great scorings, and no scorings.
  • Different command prefixes for different channels (0.87+).
  • Games cannot be terminated by those not playing the game.

Limitations at the moment include:

  • If everyone in a game quits, the bot does not realise yet and terminate the game - better to wait some minutes just to make sure they are really gone! (~0.87+)
  • Can't specify particular scorings with 'hardcoded dice' to hold, such as Small Straight or Large Straight (this would look like .hold SS to hold precisely the dice numbered 1, 2, 3, 4 and 5, ignoring the rest). (~0.88+)

Usage:

java -jar yatzybot.jar if not the first time running, otherwise: java -jar yatzybot.jar <server id> <server host> <admin username> <admin password> to allow the bot to join a server for further configuration. If running on a shell via SSH, it is recommended you use nohup to prevent SSH hangup from terminating the bot. Default nick is 'YatzyBot'.

Following this, privately message it and send pass <username> <password> to authenticate, then get it to join a channel with join {server id} <channel name>. Alternatively, get it to join another server with addserver <server id> <server host> {channel1,channel2...} {nick}.

Example initial command line: java -jar yatzybot.jar YourServer irc.yourserver.net mankocity tokyorulezz.

Requirements:

  • Java 6+
  • Few hardware requirements, very small footprint. Would probably run on a C64 if compiled.

License:

Licensed under the GPL v3.

yatzybot's People

Contributors

dessimat0r avatar

Watchers

 avatar  avatar  avatar

Forkers

bestlis

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.