diff --git a/search/method.py b/search/method.py index 9180ec1a126561c18b2bb6d6d13a477d59ec55b2..517c09aeabed8caae681ee783008efbc7163851d 100644 --- a/search/method.py +++ b/search/method.py @@ -7,6 +7,19 @@ Read from JSON file: -> load each piece into board's dictionary. -> ensure format token to distinguish between upper and lower. -> handling file IO exception + + format will be : + position_dict = { + "s1" = (row, column), + ... + } + -> for the key: 'c#' + c -character indicate which type it is {rock -> 'r' + ,paper -> 'p' + ,scissor -> 's' + ,block -> ''} + # - number to identify the specific token in the set of token with same type. + start from 1. """ def to_position_list(file): TYPE = 0