dot: add support for two-player games

* spot/twaalgos/dot.cc: Honor the "state-player" property and draw
player 1 states using diamonds.
* doc/org/hoa.org: Show an example.
* tests/core/gamehoa.test: Make sure diamond is output.
* NEWS: Mention this.
This commit is contained in:
Alexandre Duret-Lutz 2020-09-08 16:52:22 +02:00
parent ea9384dd4b
commit 41d088ea95
4 changed files with 24 additions and 0 deletions

View file

@ -1220,3 +1220,17 @@ sed -n "s/^$h: \(.*\)\$/\\1/p" <<EOF | tr -d '\n'
$t
EOF
#+END_SRC
When converted to dot, states from player 1 have a diamond shape:
#+NAME: exgame.dot
#+begin_src sh :exports code
ltlsynt --ins=a --outs=b -f 'Ga <-> Gb' --print-game-hoa | autfilt --dot
#+end_src
#+BEGIN_SRC dot :file exgame.svg :var txt=exgame.dot :exports results
$txt
#+END_SRC
#+RESULTS:
[[file:exgame.svg]]