Rev 33 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 33 | Rev 108 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | printf("edit(white): "); |
50 | printf("edit(white): "); |
51 | else |
51 | else |
52 | printf("edit(black): "); |
52 | printf("edit(black): "); |
53 | } |
53 | } |
54 | fflush(stdout); |
54 | fflush(stdout); |
55 | readstat = Read(1, buffer |
55 | readstat = Read(1, buffer); |
56 | if (readstat < 0) |
56 | if (readstat < 0) |
57 | return; |
57 | return; |
58 | nargs = ReadParse(buffer, args, " |
58 | nargs = ReadParse(buffer, args, " \t;"); |
59 | if (xboard) |
59 | if (xboard) |
60 | Print( |
60 | Print(32, "edit.command:%s\n", args[0]); |
61 | if (!strcmp(args[0], "white")) |
61 | if (!strcmp(args[0], "white")) |
62 | wtm = 1; |
62 | wtm = 1; |
63 | else if (!strcmp(args[0], "black")) |
63 | else if (!strcmp(args[0], "black")) |
64 | wtm = 0; |
64 | wtm = 0; |
65 | if (!strcmp(args[0], "#")) |
65 | if (!strcmp(args[0], "#")) |
Line 151... | Line 151... | ||
151 | if (!error) { |
151 | if (!error) { |
152 | if (log_file) |
152 | if (log_file) |
153 | DisplayChessBoard(log_file, tree->position); |
153 | DisplayChessBoard(log_file, tree->position); |
154 | wtm = 1; |
154 | wtm = 1; |
155 | move_number = 1; |
155 | move_number = 1; |
156 |
|
156 | rep_index = 0; |
157 | tree->rep_list[0] = HashKey; |
157 | tree->rep_list[0] = HashKey; |
158 | Reversible(0) = 0; |
158 | Reversible(0) = 0; |
159 | moves_out_of_book = 0; |
159 | moves_out_of_book = 0; |
160 | } else { |
160 | } else { |
161 | InitializeChessBoard(tree); |
161 | InitializeChessBoard(tree); |