From 86c88670ea757cee11864ec00e6819726c65473a Mon Sep 17 00:00:00 2001 From: Peter Ward Date: Thu, 18 Jul 2013 20:18:33 +1000 Subject: conditionally show the code --- docs/random_avoid.tex | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/random_avoid.tex') 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 -- cgit v1.2.3