diff plugins/tictactoe/tictactoe.7 @ 998:474a46e240ff

plugin tictactoe: now has a timeout of inactivity
author David Demelier <markand@malikania.fr>
date Fri, 12 Feb 2021 10:09:46 +0100
parents 5e25439fe98d
children cf99df45cb84
line wrap: on
line diff
--- a/plugins/tictactoe/tictactoe.7	Thu Feb 11 22:14:47 2021 +0100
+++ b/plugins/tictactoe/tictactoe.7	Fri Feb 12 10:09:46 2021 +0100
@@ -35,8 +35,7 @@
 section:
 .Pp
 .Bd -literal
-[plugins]
-tictactoe = ""
+plugin tictactoe
 .Ed
 .\" USAGE
 .Sh USAGE
@@ -45,11 +44,9 @@
 .Ar "x y"
 where x targets the column and y the row.
 .Pp
-To verify target opponent, this plugins first requests the names on the channel
-to ensures a valid player.
-.Pp
 If one of the players leaves the channel (either by kick or part) the game is
-aborted silently.
+aborted silently. If the player don't play in the delay of five minutes, the
+game is aborted to let another game starts.
 .Pp
 Example when starting a game:
 .Bd -literal -offset Ds
@@ -99,9 +96,7 @@
 .Sh TEMPLATES
 The
 .Nm
-plugin supports the following templates in
-.Va [templates.tictactoe]
-section:
+plugin supports the following templates:
 .Bl -tag -width 8n -offset Ds
 .It Va draw
 When the game ended with no winner.
@@ -111,6 +106,8 @@
 .It Va running
 The game is already running. Keywords:
 .Em origin .
+.It Va timeout
+The player didn't play within its turn after a certain amount of time.
 .It Va turn
 Message sent when current player change.
 .It Va used