From db5afc8c67c6968a7b45d9b179d65f6aa13f864c Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 30 May 2016 20:04:28 +0200 Subject: [PATCH] specs fr --- src/arenas/tictactoe/doc-fr.html | 87 ++++++++++++++++++-------------- src/arenas/tictactoe/style.css | 4 +- 2 files changed, 53 insertions(+), 38 deletions(-) diff --git a/src/arenas/tictactoe/doc-fr.html b/src/arenas/tictactoe/doc-fr.html index c0f8985..5994002 100644 --- a/src/arenas/tictactoe/doc-fr.html +++ b/src/arenas/tictactoe/doc-fr.html @@ -32,9 +32,7 @@

Message vous demandant de jouer (seulement un tour)

L'arène vous envoie par exemple le message suivant:

-
-  {"game-id":"1126","action":"play-turn","game":"tictactoe","players":2,"board":{"0-0":"","0-1":"","0-2":"","1-0":"","1-1":"","1-2":"","2-0":"","2-1":"","2-2":""},"you":"X","player-index":0}
-  
+
{"game-id":"1126","action":"play-turn","game":"tictactoe","players":2,"board":{"0-0":"","0-1":"","0-2":"","1-0":"","1-1":"","1-2":"","2-0":"","2-1":"","2-2":""},"you":"X","player-index":0}

la map

- +

Elle est représenté par un sous-tableau. Les index correspondent aux coordonnées x-y de la case. les valeurs peuvent être:

+

Exemple de partie

-
+
 {"game-id":"1126","action":"init","game":"tictactoe","players":2,"board":"","player-index":0}
-
+
+
 {"name":"moul-tictactoe","play":null,"error":null}
-
+
+
 {"game-id":"1126","action":"init","game":"tictactoe","players":2,"board":"","player-index":1}
-
+
+
 {"name":"moul-tictactoe","play":null,"error":null}
-
+
+
 {"game-id":"1126","action":"play-turn","game":"tictactoe","players":2,"board":{"0-0":"","0-1":"","0-2":"","1-0":"","1-1":"","1-2":"","2-0":"","2-1":"","2-2":""},"you":"X","player-index":0}
-
+
+
 {"name":"","play":"0-1","error":null}
-
+
moul2 joue en 0-1 la nouvelle grille est X - - - +
 {"game-id":"1126","action":"play-turn","game":"tictactoe","players":2,"board":{"0-0":"","0-1":"X","0-2":"","1-0":"","1-1":"","1-2":"","2-0":"","2-1":"","2-2":""},"you":"O","player-index":1}
-
+
+
 {"name":"","play":"1-1","error":null}
-
+
moul2 joue en 1-1 la nouvelle grille est X O - +
 {"game-id":"1126","action":"play-turn","game":"tictactoe","players":2,"board":{"0-0":"","0-1":"X","0-2":"","1-0":"","1-1":"O","1-2":"","2-0":"","2-1":"","2-2":""},"you":"X","player-index":0}
-
+
+
 {"name":"","play":"0-0","error":null}
-
+
moul2 joue en 0-0 la nouvelle grille est X X O - +
 {"game-id":"1126","action":"play-turn","game":"tictactoe","players":2,"board":{"0-0":"X","0-1":"X","0-2":"","1-0":"","1-1":"O","1-2":"","2-0":"","2-1":"","2-2":""},"you":"O","player-index":1}
-
+
+
 {"name":"","play":"0-2","error":null}
-
+
moul2 joue en 0-2 la nouvelle grille est X X O O - +
 {"game-id":"1126","action":"play-turn","game":"tictactoe","players":2,"board":{"0-0":"X","0-1":"X","0-2":"O","1-0":"","1-1":"O","1-2":"","2-0":"","2-1":"","2-2":""},"you":"X","player-index":0}
-
+
+
 {"name":"","play":"2-0","error":null}
-
+
moul2 joue en 2-0 la nouvelle grille est X X O O X - +
 {"game-id":"1126","action":"play-turn","game":"tictactoe","players":2,"board":{"0-0":"X","0-1":"X","0-2":"O","1-0":"","1-1":"O","1-2":"","2-0":"X","2-1":"","2-2":""},"you":"O","player-index":1}
-
+
+
 {"name":"","play":"1-0","error":null}
-
+
moul2 joue en 1-0 la nouvelle grille est X X O O O X - +
 {"game-id":"1126","action":"play-turn","game":"tictactoe","players":2,"board":{"0-0":"X","0-1":"X","0-2":"O","1-0":"O","1-1":"O","1-2":"","2-0":"X","2-1":"","2-2":""},"you":"X","player-index":0}
-
+
+
 {"name":"","play":"1-2","error":null}
-
+
moul2 joue en 1-2 la nouvelle grille est X X O O O X X - +
 {"game-id":"1126","action":"play-turn","game":"tictactoe","players":2,"board":{"0-0":"X","0-1":"X","0-2":"O","1-0":"O","1-1":"O","1-2":"X","2-0":"X","2-1":"","2-2":""},"you":"O","player-index":1}
-
+
+
 {"name":"","play":"2-1","error":null}
-
+
moul2 joue en 2-1 la nouvelle grille est X X O O O X X O - +
 {"game-id":"1126","action":"play-turn","game":"tictactoe","players":2,"board":{"0-0":"X","0-1":"X","0-2":"O","1-0":"O","1-1":"O","1-2":"X","2-0":"X","2-1":"O","2-2":""},"you":"X","player-index":0}
-
+
+
 {"name":"","play":"2-2","error":null}
-
+
moul2 joue en 2-2 la nouvelle grille est X X O O O X diff --git a/src/arenas/tictactoe/style.css b/src/arenas/tictactoe/style.css index fd03b53..e537c5d 100644 --- a/src/arenas/tictactoe/style.css +++ b/src/arenas/tictactoe/style.css @@ -2,4 +2,6 @@ td {min-width: 10px; height: 10px;} .cellj0{border-bottom: 1px dotted black;} .cellj2{border-top:1px dotted black;} .celli0{border-right:1px dotted black;} -.celli2{border-left:1px dotted black;} \ No newline at end of file +.celli2{border-left:1px dotted black;} +.arrenaMessage{color: green;} +.botResponse{color: red;} \ No newline at end of file