Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yonle/dandelions-irc-bot

An IRC bot that plays 2 player game called dandelions
https://github.com/yonle/dandelions-irc-bot

Last synced: about 1 month ago
JSON representation

An IRC bot that plays 2 player game called dandelions

Awesome Lists containing this project

README

        

dandelionbot
============
An IRC bot that plays 2 player game called dandelion
Based on https://mathwithbaddrawings.com/dandelions

Yonle: Dandelion, It's your turn.
1 2 3 4 5 Wind Directions
---------------------- N
A| | | | | | |
---------------------- NW | NE
B| | | | | | |
---------------------- |
C| | | | | | W -------+------- E
---------------------- |
D| | | | | | |
---------------------- SW | SE
E| | | | | | |
---------------------- S
<~Yonle> C1
Yonle: Wind, It's your turn.
1 2 3 4 5 Wind Directions
---------------------- N
A| | | | | | |
---------------------- NW | NE
B| | | | | | |
---------------------- |
C| * | | | | | W -------+------- E
---------------------- |
D| | | | | | |
---------------------- SW | SE
E| | | | | | |
---------------------- S
<~Yonle> NE
Yonle: Dandelion, It's your turn.
1 2 3 4 5 Wind Directions
---------------------- N
A| | | , | | | |
---------------------- NW |
B| | , | | | | |
---------------------- |
C| * | | | | | W -------+------- E
---------------------- |
D| | | | | | |
---------------------- SW | SE
E| | | | | | |
---------------------- S

Running
=======
You will need a NodeJS v16+ installed in your operating system.

Before running, Please edit the config.js file accordingly.

Once that all being set, Run the following command to start the bot:
$ node index.js

Playing the game
================
The bot has 3 commands being implemented:
* !dandelion [nick] (col) (rows) - Play as dandelion with target player as wind
* !wind [nick] (col) (rows) - Play as wind with target player as dandelion
* !destroy - Destroy the current match