Contents
Your challenge is to write a bot to play the Hexagon dots game. Your bot will
| $ brew --config | |
| HOMEBREW_VERSION: 0.7.1 | |
| HEAD: 511c404a2047f7148efec20332b98a3a52bf3cd4 | |
| HOMEBREW_PREFIX: /usr/local | |
| HOMEBREW_CELLAR: /usr/local/Cellar | |
| HOMEBREW_REPOSITORY: /usr/local | |
| HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew | |
| Hardware: 8-core 64-bit nehalem | |
| OS X: 10.6.6 | |
| Kernel Architecture: i386 |
| checking for strings.h... yes | |
| checking for inttypes.h... yes | |
| checking for stdint.h... yes | |
| checking for unistd.h... yes | |
| checking asm/types.h usability... no | |
| checking asm/types.h presence... no | |
| checking for asm/types.h... no | |
| checking conio.h usability... no | |
| checking conio.h presence... no | |
| checking for conio.h... no |
| This is the second file. |
| This is the second file. | |
| And this is more content. |
| body { | |
| margin: 0; | |
| padding: 1em; | |
| font-family: sans-serif; | |
| } | |
| h1, h2, h3, h4, h5 { | |
| font-family: Arial; | |
| margin-left: 12px; | |
| margin-right: 12px; |
| (1, <read-write buffer ptr 0x698860, size 4 at 0x698840>) | |
| (2, u'0.00') | |
| sqlite 2.4.1 | |
| storm 0.17 |
| $ python test.py | |
| 2.4.1 | |
| [axiom, version 0.6.0] | |
| ('Darwin', 'bonabuhle.local', '10.7.0', 'Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386', 'i386') | |
| Traceback (most recent call last): | |
| File "test.py", line 11, in <module> | |
| s = Store() | |
| File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/axiom/store.py", line 1161, in __init__ | |
| self._initSchema() | |
| File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/axiom/store.py", line 1264, in _initSchema |
| $ python prob.py | |
| 2011-07-27 08:38:43-0600 [-] Log opened. | |
| 2011-07-27 08:38:43-0600 [-] Connected to process | |
| 2011-07-27 08:38:43-0600 [-] [Errno 61] Connection refused | |
| 2011-07-27 08:38:43-0600 [-] error connecting 0 sleep for 1 second | |
| 2011-07-27 08:38:44-0600 [-] [Errno 22] Invalid argument | |
| 2011-07-27 08:38:44-0600 [-] error connecting 1 sleep for 1 second | |
| 2011-07-27 08:38:45-0600 [-] [Errno 22] Invalid argument | |
| 2011-07-27 08:38:45-0600 [-] error connecting 2 sleep for 1 second | |
| 2011-07-27 08:38:46-0600 [-] [Errno 22] Invalid argument |
| Customer's can purchase things, and employees can be paid a commission for assisting the customer in their purchase. What methods would you create to do this? |