Skip to content

Commit

Permalink
should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
tonymorony committed Feb 22, 2019
1 parent 6339022 commit 28550b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sudoku.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def startNewGame(self):

def __loadPuzzle(self, listName):
self.__chosen_puzzle = random.choice(listName)
puzzle = self.__rpc_connection.cclib("txidinfo", "17", '"' + self.__chosen_puzzle + '"')["unsolved"]
puzzle = self.__rpc_connection.cclib("txidinfo", "17", '"%22' + self.__chosen_puzzle + '%22"')["unsolved"]
print "Puzzle ID: " + self.__chosen_puzzle
print "Reward amount: " + str(self.__rpc_connection.cclib("txidinfo", "17", '"%22' + self.__chosen_puzzle + '%22"')["amount"])
ret = []
Expand Down Expand Up @@ -325,7 +325,7 @@ def checkSolution(self, attemptGrid, timestampValues):
arg_line = "[%22"+self.__chosen_puzzle+"%22,%22"+attemptLine+"%22"+timestampsline+"]"
print arg_line
try:
solution_info = self.__rpc_connection.cclib("solution", "17", '"%22' + arg_line + '%22"')
solution_info = self.__rpc_connection.cclib("solution", "17", '"' + arg_line + '"')
print solution_info
solution_txid = self.__rpc_connection.sendrawtransaction(solution_info["hex"])
print "Solution accepted!"
Expand Down Expand Up @@ -359,4 +359,4 @@ def main():
newGame = Sudoku(puzzle_list, rpc_connection)

if __name__ == '__main__':
main()
main()

0 comments on commit 28550b6

Please sign in to comment.