IRCCD-PLUGIN-TICTACTOE(7) Miscellaneous Information Manual IRCCD-PLUGIN-TICTACTOE(7)

tictactoe
irccd tictactoe plugin

The tictactoe plugin let you play tictactoe over IRC.

Warning: this plugin is extremely verbose, don't enable it blindly.

The plugin tictactoe is distributed with irccd. To enable it add the following to your plugins section:
[plugins]
tictactoe = ""

Use the special command with the target opponent nickname. Then each player send a message in the form x y where x targets the column and y the row.

To verify target opponent, this plugins first requests the names on the channel to ensures a valid player.

If one of the players leaves the channel (either by kick or part) the game is aborted silently.

Example when starting a game:

markand: !tictactoe francis
irccd:   a b c
irccd: 1 . . .
irccd: 2 . . .
irccd: 3 . . .
irccd: markand, it's your turn

And then, placing tokens:

20:27 < markand> a 1
20:27 < irccd>   a b c
20:27 < irccd> 1 x . .
20:27 < irccd> 2 . . .
20:27 < irccd> 3 . . .
20:27 < irccd> francis, it's your turn
20:27 <@francis> c 1
20:27 < irccd>   a b c
20:27 < irccd> 1 x . o
20:27 < irccd> 2 . . .
20:27 < irccd> 3 . . .
20:27 < irccd> markand, it's your turn
20:27 < markand> a 2
20:27 < irccd>   a b c
20:27 < irccd> 1 x . o
20:27 < irccd> 2 x . .
20:27 < irccd> 3 . . .
20:27 < irccd> francis, it's your turn
20:27 <@francis> c 3
20:27 < irccd>   a b c
20:27 < irccd> 1 x . o
20:27 < irccd> 2 x . .
20:27 < irccd> 3 . . o
20:27 < irccd> markand, it's your turn
20:27 < markand> a 3
20:27 < irccd>   a b c
20:27 < irccd> 1 x . o
20:27 < irccd> 2 x . .
20:27 < irccd> 3 x . o
20:27 < irccd> francis, it's your turn
20:27 < irccd> markand, congratulations, you won!

The tictactoe plugin supports the following templates in [templates.tictactoe] section:
draw
When the game ended with no winner.
invalid
The opponent does not exist or is not valid. Keywords: origin.
running
The game is already running. Keywords: origin.
turn
Message sent when current player change.
used
The cell requested is already used.
win
Game ended with a winner.

All templates support the following standard keywords: channel, command, nickname, plugin, server.

irccd(1), irccd-templates(7)
October 6, 2019 Linux 5.3.1-arch1-1-ARCH