File size: 1,068 Bytes
e936283
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- coding: utf-8 -*-
# Response message template
MESSAGE_TEMPLATE = """[◕ _ ◕]^*

I attempted to generate a [chessboard layout]({unaligned_fen_img_link}) from the posted image[^(what I saw)]({visualize_link}),
with a certainty of **{certainty:.3f}%**. *{pithy_message}*

-

◇ White to play : [Analysis]({lichess_analysis_w}) | [Editor]({lichess_editor_w}) 
`{fen_w}`

-

◆ Black to play : [Analysis]({lichess_analysis_b}) | [Editor]({lichess_editor_b})
`{fen_b}`

-

> ▾ Links for when pieces are inverted on the board:
> 
> White to play : [Analysis]({inverted_lichess_analysis_w}) | [Editor]({inverted_lichess_editor_w})
> `{inverted_fen_w}`
>
> Black to play : [Analysis]({inverted_lichess_analysis_b}) | [Editor]({inverted_lichess_editor_b})
> `{inverted_fen_b}`

-


---

^(Yes I am a machine learning bot | )
[^(`How I work`)](http://github.com/Elucidation/tensorflow_chessbot 'Must go deeper')
^( | )[^(`Try your own images`)](http://tetration.xyz/ChessboardFenTensorflowJs/)
^( | Reply with a corrected FEN to add to my next training dataset)

"""