~johanvandegriff/BoggleSolver

ref: fde46a1ef766255560499ee9e1d78496a305bb98 BoggleSolver/convert.py -rw-r--r-- 227 bytes
fde46a1e — Johan Vandegriff Add files via upload 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/python
import sys
import pickle

if len(sys.argv) == 1:
  quit()

board = pickle.load(open(sys.argv[1],'r')) #import the board

file = []
file.append(board)

pickle.dump(file, open(sys.argv[1],'w')) #write the board