|  |
|  | |  |
|  | Reply to isconnected() code request |  |
|
mjs
| Joined: 12 Sep 2004 |
| Posts: 45 |
| Location: Canberra, Australia |
|
 |
Posted: Tue Nov 22, 2005 10:27 pm |
|
 |
 |
 |
 |
Hi Tominator,
I am happy you have Harrigan working on a windows box, but puzzled as to why the time function does not work. Any python-on-windows people that can help?
I provided "polas" as a framework that programmers (possible new to python) could try out and modify. In accordance with the POTM-MASTER's wishes, I did not include any game playing logic (other than a generator of valid (but not good (yikes - parenthesis out of control...)) moves). I suspect using the "isconnected()" code violates the spirit (if not the letter) of the rules. I have no problem with anyone using or modifying all-of or parts-of polas or harrigan for any POTM-related purpose, but it is the POTM-MASTER's decision....
If harrigan users have made changes, found bugs, need clarification, or would like an enhancement, please add a note here or send me a private message. I will try to help.
|
|
_________________ ~~~~~~~~
Mike
|
|  |
|  | |  |
|  |
|  | |  |
|
gsakkis
| Joined: 30 Jun 2005 |
| Posts: 7 |
| Location: New Jersey, USA |
|
 |
Posted: Wed Nov 23, 2005 11:06 am |
|
 |
 |
 |
 |
| Tominator wrote: | BTW: I dislike parenthesis as well. As a first-time pythonner, I still get plenty of errors when doing board.get(x, y) instead of board.get((x, y)), even though I know that and why the first is wrong  |
I have the impression that he was talking about the nested parenthesis in his comment, not the program BTW, if using tuples instead of plain coordinates is really annoying for you, you can always make board a dict subclass and override get:
class Board(dict):
def get(self, x, y):
return dict.get(self, (x,y))
|
|
|
_________________ It might look like I'm doing nothing, but at the cellular level I'm really quite busy.
|
|  | Don't Worry |  |
|  | Updated harrigan ... |  |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT - 4 Hours
Page 2 of 2
|
|
|
|
|