Index: trunk/python/trydds.py
===================================================================
--- trunk.orig/python/trydds.py 2007-01-19 01:02:23.212921160 +0100
+++ trunk/python/trydds.py 2007-01-19 01:05:49.711528600 +0100
@@ -1,4 +1,4 @@
-#!/usr/local/bin/python
+#!/usr/bin/python
import sys
import pydds
@@ -10,10 +10,10 @@ timer = time.time
def dod(ds):
t = timer()
d = timer()
- # deal = [h.split(' ') for h in ds.split('|')]
- deal = [h.split('.') for h in ds.split()[1::2]]
+ deal = [h.split(' ') for h in ds.split('|')]
+ #deal = [h.split('.') for h in ds.split()[1::2]]
d = timer() - d
- print 'D', 8*'.','|'.join(' '.join(s) for s in deal)
+ #print 'D', 8*'.','|'.join(' '.join(s) for s in deal)
# sys.stdout.flush()
a = timer()
dd = pydds.deal(deal)
@@ -26,17 +26,17 @@ def dod(ds):
b = timer() - b
t = timer() - t
print 'T%d' % s[-1][0],
- print '%.2f %.2f %.2f %.2f' % (d, a, b, t)
+ #print '%.2f %.2f %.2f %.2f' % (d, a, b, t)
# print '|'.join(' '.join(s) for s in deal),
print s
return t
-# ds = 'AQ9 AQ9 8643 KQ8|T82 T6542 AKT A7|K653 K83 Q92 543|J74 J7 J75 JT962'
-ds='n AQ3.T653.KQ4.AJ5 e KJT4.AKQ8.JT86.8 s 862.974.A73.KQ72 w 975.J2.952.T9643'
-print ds
-dod(ds)
-sys.exit()
+#ds = 'AQ9 AQ9 8643 KQ8|T82 T6542 AKT A7|K653 K83 Q92 543|J74 J7 J75 JT962'
+##ds='n AQ3.T653.KQ4.AJ5 e KJT4.AKQ8.JT86.8 s 862.974.A73.KQ72 w 975.J2.952.T9643'
+#print ds
+#dod(ds)
+#sys.exit()
def main():
handsfile = open('t1')