IRCCD-PLUGIN-TICTACTOE(7) - Miscellaneous Information Manual
tictactoe - irccd tictactoe plugin
The tictactoe plugin let you play tictactoe over IRC.
Warning: this plugin is extremely verbose, don’t enable it blindly.
is distributed with irccd. To enable it add it into your irccd.conf(5) configuration file.
plugin "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.
If one of the players leaves the channel (either by kick or part) the game is aborted silently. If the player don’t play in the delay of five minutes, the game is aborted to let another game starts.
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 plugin tictactoe supports the following templates properties:
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.
timeout
The player didn’t play within its turn after a certain amount of time.
turn
Message sent when current player change.
used
The cell requested is already used.
win
Game ended with a winner.
All templates supports the following standard keywords: channel, command, nickname, plugin, server.
irccd(1), irccd-templates(7)
macOS 13.5 - February 3, 2022