In [4]:
import sys
import os
sys.path.append(os.getcwd())

from renju import Game, run_test, Player, PyPlotUI
from agent import BackendAgent, HumanAgent

%matplotlib notebook

In [6]:
run_test(BackendAgent('./mcts_agent.py', 'B'), BackendAgent('./mcts_agent.py', 'W'))


---------------------------------------------------------------------------
PermissionError                           Traceback (most recent call last)
<ipython-input-6-417dc0a426c6> in <module>()
----> 1 run_test(BackendAgent('./mcts_agent.py', 'B'), BackendAgent('./mcts_agent.py', 'W'))

/home/eternius/git/Renju/competition/agent.py in __init__(self, backend, name)
     35             backend.split(),
     36             stdin=subprocess.PIPE,
---> 37             stdout=subprocess.PIPE
     38         )
     39 

/usr/lib/python3.5/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds)
    945                                 c2pread, c2pwrite,
    946                                 errread, errwrite,
--> 947                                 restore_signals, start_new_session)
    948         except:
    949             # Cleanup if the child failed starting.

/usr/lib/python3.5/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
   1549                             else:
   1550                                 err_msg += ': ' + repr(orig_executable)
-> 1551                     raise child_exception_type(errno_num, err_msg)
   1552                 raise child_exception_type(err_msg)
   1553 

PermissionError: [Errno 13] Permission denied

In [ ]: