Permalink
Browse files

game machine state diagram

  • Loading branch information...
1 parent b77a850 commit 648a15898c94569d8e39d87fee9b97c0560124d3 @wardi committed Jan 12, 2013
Showing with 22 additions and 2 deletions.
  1. +4 −2 Makefile
  2. +18 −0 game_machine.dot
  3. BIN game_machine.png
View
@@ -1,3 +1,5 @@
-iterable_iterator.png: iterable_iterator.dot
- dot iterable_iterator.dot -Tpng -oiterable_iterator.png
+all: iterable_iterator.png game_machine.png
+
+%.png: %.dot
+ dot "$<" -Tpng -o"$@"
View
@@ -0,0 +1,18 @@
+digraph game_machine {
+ splines=true;
+ sep="+25,25";
+ graph [overlap=scalexy];
+ edge [fontsize=9];
+ waiting;
+ play;
+ win [style=dotted];
+ moved [style=dotted];
+ waiting -> play [label="guest joined"];
+ play -> waiting [label="guest\ndisconnected\nor timeout"];
+ play -> moved [label="guest input\n(disable timeout)"];
+ play -> moved [label="host\ninput"];
+ moved -> play;
+ moved -> win [label="win result"];
+ win -> play;
+ win -> waiting [label="full\nround\nplayed"];
+}
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 648a158

Please sign in to comment.