summaryrefslogtreecommitdiff
path: root/docs/random_avoid.tex
diff options
context:
space:
mode:
authorPeter Ward <peteraward@gmail.com>2013-07-18 20:18:33 +1000
committerPeter Ward <peteraward@gmail.com>2013-07-18 20:18:33 +1000
commit86c88670ea757cee11864ec00e6819726c65473a (patch)
tree6d7a24abf2661b80df72fe8d0e53d72f5193ec09 /docs/random_avoid.tex
parenta08792ddb7ffeed3e1d376248777a5f7c010bd67 (diff)
conditionally show the code
Diffstat (limited to 'docs/random_avoid.tex')
-rw-r--r--docs/random_avoid.tex2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/random_avoid.tex b/docs/random_avoid.tex
index 90ac183..136a250 100644
--- a/docs/random_avoid.tex
+++ b/docs/random_avoid.tex
@@ -162,6 +162,8 @@ def bot(board, position):
return choice(valid_moves)
\end{pythoncode}
+\ifshowcode
If you’re really stuck, or want to check your solution, here’s my solution:
\pythonfile{random_avoid.py}
+\fi