]> code.delx.au - gnu-emacs-elpa/blob - TODO
Have 'make check' fail if there are any Lisp errors.
[gnu-emacs-elpa] / TODO
1 EMACS-CHESS -*- mode: org; fill-column: 78 -*-
2
3 #+STARTUP: overview
4 #+ARCHIVE: TODO-OLD::
5 #+SEQ_TODO: TODO(@) STARTED(@) WAITING(@) DELEGATED(@) | DONE(@) DEFERRED(@) CANCELLED(@) WONTFIX(@) WORKSFORME(@) INVALID(@) DUPLICATE(@) NOTE
6 #+TAGS: FEATURE(f) DOCS(d) BUILD(b)
7 #+CATEGORY: Chess
8
9 * TODO When an error occurs during make check, the test should fail
10 :PROPERTIES:
11 :ID: 5FA91881-6013-4E36-B636-2DC021E3FB46
12 :END:
13 [2008-09-16 Tue]
14 * TODO A way to keep a correspondence players database in BBDB :FEATURE:
15 :PROPERTIES:
16 :ID: 8D40AD04-2392-410E-BDFE-AA80381E2BCB
17 :END:
18 * TODO Add `force' event for forcing an engine to move :FEATURE:
19 And a command from chess-display to send this event.
20 :PROPERTIES:
21 :ID: E88AE290-D2DD-4445-942E-E9DE09596A1F
22 :END:
23 * TODO Add a chess tutor program, to teach people how to play chess :FEATURE:
24 :PROPERTIES:
25 :ID: 8AA53467-6D89-4C27-AF05-4AE793EA6A2E
26 :END:
27 * TODO Add a Map command, that will colorize the squares :FEATURE:
28 Depending on whether they are reachable by either side. Green if reachable
29 by you, Red if by your opponent, and blue if by both. With a prefix
30 argument, colorize only the squares that have pieces on them. This is a
31 stable modes that remains in effect until turned off. It also requires the
32 ability to pass a color to the chessboard highlighting routine.
33 :PROPERTIES:
34 :ID: B2012331-0F7F-488D-BFDC-2C08E2E018FB
35 :END:
36 * TODO Add an analyze command :FEATURE:
37 That will indicate which pieces are defended, how well, which are attacked,
38 which moves would increase defense/attack/both, etc. Basically, everything
39 that can be known about the current board, and one move ahead (on both
40 sides).
41 :PROPERTIES:
42 :ID: 8439E0A2-6ED6-489D-94EF-9033F76210EE
43 :END:
44 * TODO Add an engine function for obtaining a position evaluation :FEATURE:
45 Then, allow M-x chess to startup a non-game oriented engine, solely for the
46 purpose of submitting position evaluations, and displaying the result in the
47 modeline. (Also, look at crafty's kibitzing feature).
48 :PROPERTIES:
49 :ID: BE3EAF49-622E-4300-9D63-CB00B5F738F7
50 :END:
51 * TODO Add chess-ucb to the list of modules created via M-x chess
52 Right now there is no facility for having two engines associated with a
53 single game (and chess-link is not what we want in this case).
54 :PROPERTIES:
55 :ID: 8C355AA3-46DD-4261-BC7C-4028CDF42854
56 :END:
57 * TODO [#C] Add docstrings/texi content
58 :PROPERTIES:
59 :ID: 7BC85C08-7A3B-4A09-94C6-9AF10180924B
60 :END:
61 * TODO Add slots to positions for tracking positional evaluation :FEATURE:
62 These values can be automatically determined when parsing ICS12.
63 :PROPERTIES:
64 :ID: 608A74EE-9699-406B-B57A-08BFECBC9FEB
65 :END:
66 * TODO Add support for adjournments :FEATURE:
67 Also, implement this is such a way that an e-mail or postal game is
68 basically a game that's adjourned after every move; use BBDB if available
69 :PROPERTIES:
70 :ID: D41A3E75-04FB-4EC8-A64C-7BD54658AA78
71 :END:
72 * TODO Add warning mode that uses analysis results to warn the user :FEATURE:
73 And ask for confirmation before doing something that might lead to an
74 inferior position.
75 :PROPERTIES:
76 :ID: 9EF1FA72-EDC9-4C97-B699-A0DF8EE1893B
77 :END:
78 * TODO Allow the opponent to give hints :FEATURE:
79 :PROPERTIES:
80 :ID: 068BE26D-4D81-44CD-A4EB-04F15D5064FB
81 :END:
82 * TODO autosave: Doesn't support undoing of moves
83 :PROPERTIES:
84 :ID: 80E09658-6D7E-4DD5-A077-E3CDB80F6003
85 :END:
86 * TODO autosave: This module currently isn't working at all!
87 :PROPERTIES:
88 :ID: D31ED224-7C1E-4171-AE38-AE87D0032743
89 :END:
90 * TODO Change chess-announce/sound so it reads the text rendered move :FEATURE:
91 Such as "king's pawn to e4".
92
93 This way it will work with either descriptive or algebraic notation. Also,
94 chess-announce and chess-sound can be collapsed into one module, with
95 different "styles" of announcing.
96 :PROPERTIES:
97 :ID: B7090875-BB45-438D-B7C9-CC7A0524D98B
98 :END:
99 * TODO [#C] Clean up chess.el
100 :PROPERTIES:
101 :ID: F2CC192E-8AD3-47BD-9A9F-3990BA1206A2
102 :END:
103 * TODO clock: Sometimes, the clock gets shut off while playing on ICS
104 :PROPERTIES:
105 :ID: 5130D83E-91A4-4FFD-B62F-DFD8345B06AC
106 :END:
107 * TODO Create a better error hierarchy :FEATURE:
108 Instead of using (error), we should be throwing specialized signals that
109 indicate whether it's a problem with a ply, a position, a move, etc. And
110 then this data object should be included with the error.
111 :PROPERTIES:
112 :ID: 323563C6-2A99-4B01-A29B-BEB09166C103
113 :END:
114 [2008-08-31 Sun]
115 * TODO Create generic chess-output interface :FEATURE:
116 For outputting games to a particular format (PGN, HTML, LaTeX, etc).
117 :PROPERTIES:
118 :ID: A7F64797-4827-4EF6-BFE4-075D6F430D4E
119 :END:
120 * TODO Display in modeline which game in the database we're in :FEATURE:
121 And what the positional evaluation is.
122 :PROPERTIES:
123 :ID: 6144C07C-8F6B-46B8-80A8-C736E3C843F0
124 :END:
125 * TODO display: Always validate the display before painting
126 This will require adding a new text property to each square on the board,
127 `chess-piece', so that the validator can walk through the displayed board
128 and ensure that it matches the known position for that board.
129 :PROPERTIES:
130 :ID: 169EB9E9-ED82-4FA7-AE8A-129FFFE419F6
131 :END:
132 * TODO display: Draw move highlights as a border, not a background
133 This should be optional, since backgrounds can look nice too.
134 :PROPERTIES:
135 :ID: 5A7A3C73-5105-4BAB-A027-79310B9CD061
136 :END:
137 * TODO display: If I win, it still reports CHECKMATE incorrectly
138 If I'm white, it does so on the last ply (per display)
139 :PROPERTIES:
140 :ID: 3F662E90-3F58-43E9-B59E-936F1EBC3953
141 :END:
142 * TODO display: Make highlight colors easily customizable
143 :PROPERTIES:
144 :ID: D0842841-9E89-49A3-9EEB-5FA4D251FE41
145 :END:
146 * TODO display: Need "save game to a PGN file/database" command
147 :PROPERTIES:
148 :ID: 2BBA9120-1EE5-4623-9F52-DFB966EC3317
149 :END:
150 * TODO [#B] display: Sometimes final event of game doesn't change modeline
151 - Note taken on [2008-09-03 Wed 04:18] \\
152 I just had it happen again tonight, when I resigned with C-c C-r, and it
153 showed up in the *chess-ics* buffer, but it didn't update the modeline.
154 Like CHECKMATE, FLAG FELL, or RESIGN
155 :PROPERTIES:
156 :ID: 316BD168-29A8-4B54-830C-FA5CEA397518
157 :END:
158 [2008-09-02 Tue]
159 * TODO [#C] Elint all files
160 :PROPERTIES:
161 :ID: 7F56D199-279D-4DAD-AF4C-D612AFC803FA
162 :END:
163 * TODO Enable chat module, and base its interface on what TNT does :FEATURE:
164 :PROPERTIES:
165 :ID: A5AC87EC-99B7-4522-9916-F97ED3EC5F78
166 :END:
167 * TODO Enable UI commands in chess-display to interact with databases :FEATURE:
168 As of 2.0, this support is programmatic only.
169 :PROPERTIES:
170 :ID: 8CA4762E-4665-433E-9538-994BEDCABE21
171 :END:
172 * TODO engine: Answering "y" to opponent (takeback, etc) hangs
173 I get left with an hourglass cursor.
174 :PROPERTIES:
175 :ID: 0F9290D9-90D6-48ED-9F13-EEDF42EA91F0
176 :END:
177 * TODO engine: If no chess engine available, print a nice message
178 :PROPERTIES:
179 :ID: E0889D90-33FD-426F-AC45-6221136162D8
180 :END:
181 * TODO Enhance PGN mode :FEATURE:
182 Maybe pgn-mode could just allow normal editing, and bind some keys
183 to do special things. e.g., the mouse binding could work as normal,
184 SPC could update the display. So if you do
185
186 1 e4 SPC
187
188 you get the move displayed. Some binding could do redisplay anyway, e.g. C-l?
189 Then, one could enter variations or such simply with ( or { and
190 the display would update automatically.
191 e.g., you do
192
193 ( 15.e5 SPC Nf3 SPC )
194
195 and you'd get three display updates, on e5 SPC, you get that
196 ply, then the second one, and on ) you get the position before the
197 variation. Move point into the variation again, and hit C-l and you
198 get the pos where point is on.
199
200 There should be a forward-ply and backward-ply, maybe something like
201 M-f / M-b, and C-u M-f for two plies forward?
202
203 Very nice would be a pcomplete-based completion fascility, so
204 simply hit TAB at any point, and you get the right completion.
205
206 Example:
207
208 [Event ...]
209
210 TAB 1.TAB ...
211
212 On first tab, the move number is inserted. On second, you get
213 all possible moves in that position.
214 :PROPERTIES:
215 :ID: 7D4ACEDE-C9D9-49E1-883F-829DB80FC5E7
216 :END:
217 * TODO Find a way to display pieces on Windows platforms
218 Or at least document how to build XPM support into Emacs for Windows.
219 :PROPERTIES:
220 :ID: D602699C-A340-41A4-BA94-876743D43F8C
221 :END:
222 * TODO [#B] Fix errors from the validation suite
223 Error reading game 336249: PGN parser: Expected a ply here: '30'
224 Error reading game 443436: PGN parser: Expected a ply here: 'Rf2'
225 Error reading game 465586: PGN parser: Expected a ply here: 'R'
226 :PROPERTIES:
227 :ID: 01CFDC4F-350C-472B-A4F6-DFE4503B6D05
228 :END:
229 [2008-09-02 Tue]
230 * TODO Follow what `edit-env' does, in order to make chess-query.el :FEATURE:
231 :PROPERTIES:
232 :ID: 48F2D4F3-8B1B-4196-BED0-1407239ADC4F
233 :END:
234 * TODO german: Complete translation
235 :PROPERTIES:
236 :ID: 937301D5-2C31-4F43-83B0-FB9A0CD5F138
237 :END:
238 * TODO gnuchess: Triggers a Lisp error when I resign
239 :PROPERTIES:
240 :ID: 8ADABEB5-BF38-4A71-949F-074048AED7B0
241 :END:
242 * TODO ics: Accepting match request doesn't seem to be working always
243 :PROPERTIES:
244 :ID: 296B2B3D-B4CF-418E-8FA6-36D301D09136
245 :END:
246 * TODO ics: Add a completion function against logged in users :FEATURE:
247 :PROPERTIES:
248 :ID: 1AFE6B32-7236-4E71-9CCC-21B797E67F08
249 :END:
250 * TODO ics: Copy ics.el's nicer functionality into chess-ics.el :FEATURE:
251 :PROPERTIES:
252 :ID: 05E523E9-38EC-4268-89B4-2A42409F9059
253 :END:
254 * TODO ics: Not detecting forfeit by disconnection at the moment
255 :PROPERTIES:
256 :ID: 0EDCC239-65B0-450F-82B9-12B1E96667D4
257 :END:
258 * TODO ics: Resuming adjourned games does not work at all
259 :PROPERTIES:
260 :ID: D2E35ADE-1CFF-4DB6-A910-DF3C886709B3
261 :END:
262 * TODO ics: Takebacks still aren't working 100%
263 When I submit a takeback request manually, and the other side accepts, my
264 client doesn't know what to do with it
265 :PROPERTIES:
266 :ID: 67BF2EFF-66E6-4DE3-BCD1-D1743D8C7AC3
267 :END:
268 * TODO If you are playing a puzzle game, and the engine is thinking
269 And you hit space to move to the next puzzle, then when the last move is
270 finally received from the engine it causes an error.
271 :PROPERTIES:
272 :ID: 4583E224-B5A2-47D4-906E-6374AA7AB936
273 :END:
274 * TODO [#C] Investigate the performance possibilities researched by Mario
275 Well, I've played a little with a few transformations but I haven't managed
276 to get any substantial speedup. Things I see are:
277
278 - char-valid-p is called at least three times, the value could be saved in
279 the toplevel let*.
280 - I am not sure but I think I read inline quoted lists can be slower. I
281 tried to define the direction lists as a alist in a defconst, but it
282 didnt't really show as a speedup...
283 - The chess--add-candidates defsubst does needless check of check-only in
284 some cases. I.e., if we rewrite the first cond clause to do different
285 things if check-only is t or nil, that might also do a bit.
286
287 But really, I didnt find anything worthwhile... Maybe it could make sense to
288 have a separate function to handle the (memq piece '(nil t)) case.
289 :PROPERTIES:
290 :ID: 24E8AD24-067C-4130-9616-63D5DFF60231
291 :END:
292 [2008-09-01 Mon]
293 * TODO irc: If move before opponent connects, symbol assertion "value"
294 :PROPERTIES:
295 :ID: DCCEB9D3-0F5F-484C-9D4E-A0B7801F101D
296 :END:
297 * TODO Let people override the chess-default-* lists :FEATURE:
298 :PROPERTIES:
299 :ID: AEBED712-70F6-499B-A8D8-6A8632D9A7D1
300 :END:
301 * TODO Make ( create variations in a display :FEATURE:
302 And keys to move into and out of them. At the moment, variations are
303 supported programmatically, but not in the UI.
304 :PROPERTIES:
305 :ID: C7B9BEEE-5261-412C-8592-5E1EDEBC5544
306 :END:
307 * TODO Make a read-only display mode :FEATURE:
308 Which allows people to view/browse but not alter a game. This could be used
309 for remoting displays in order that people on other X servers might observe
310 a game.
311 :PROPERTIES:
312 :ID: 1968B422-B8D9-4493-9C90-401956C8CAE0
313 :END:
314 * TODO [#B] Make the "debug level" configurable
315 The speedup from (setq cl-optimize-speed 9) in chess-pos.el is due to
316 eliding assert calls. This basically makes asserts useless since they are
317 now turned off unconditionally. It would be nice to have a kind of
318 "--enable-debug" or somesuch at configure time to make this obvious.
319 :PROPERTIES:
320 :ID: 130D8091-A1F5-43DC-AFBA-BFDB5D1ADEDF
321 :END:
322 [2008-09-10 Wed 17:04]
323 * TODO [#B] Make the chess-ics-sought buffer read-only
324 :PROPERTIES:
325 :ID: D416E179-252C-49CE-8BAA-06B31364116F
326 :END:
327 [2008-09-02 Tue]
328 * TODO Merge chess-announce and chess-sound :FEATURE:
329 Use style modules on top of the underlying module.
330 :PROPERTIES:
331 :ID: 87612913-B3AD-4329-892F-C156F88A358C
332 :END:
333 * TODO Need a way to play bughouse/crazyhouse games. :FEATURE:
334 :PROPERTIES:
335 :ID: 237BDAFD-0B92-4A06-AA25-D5568FF3DC4B
336 :END:
337 * TODO network: Does not work at all!
338 :PROPERTIES:
339 :ID: AC39392F-57EF-4D79-A718-DEB4B24DFC5D
340 :END:
341 * TODO pgn: Sometimes when clipping, "*" is stuck to last move's text
342 :PROPERTIES:
343 :ID: 5B737ED4-F271-425E-9F1D-1DFA7834BAFF
344 :END:
345 * TODO pgn: When saving game to clipboard, shouldn't need to save FEN
346 If it's starting from a standard position (this doesn't always happen)
347 :PROPERTIES:
348 :ID: 7CB3441C-9398-42D7-A174-5F534ADA473B
349 :END:
350 * TODO ply: detect games drawn by 3-fold repetition and 50 move rule
351 Note, FIDE rules define that a draw must be claimed by one of the opponents,
352 so we do not really need to do this on every move, just when a draw is
353 requested.)
354 :PROPERTIES:
355 :ID: 4D3BBF63-A640-483A-ACF9-CC948AEAAAC7
356 :END:
357 * TODO Port the code to XEmacs
358 :PROPERTIES:
359 :ID: A633A292-722C-4566-9F5D-807675DAB8DD
360 :END:
361 * TODO [#C] Profile and mem profile
362 Especially try to get the validation suite running faster!
363 :PROPERTIES:
364 :ID: 4A08E03C-1AEA-4C14-951A-3F8DBB2E29E7
365 :END:
366 * TODO [#B] Sometimes the chess-ics-sought buffer doesn't appear
367 :PROPERTIES:
368 :ID: A3499CBB-5C0D-4C1B-872C-DC4E7D46CA73
369 :END:
370 [2008-09-02 Tue]
371 * TODO [#B] Sought games are not being selected for me when I press RET
372 :PROPERTIES:
373 :ID: 06F3AD0F-B44D-4845-B345-4406AF8D3212
374 :END:
375 [2008-09-02 Tue]
376 * TODO Tools for managing a tournament :FEATURE:
377 Setting up pairings, calculating ratings.
378 :PROPERTIES:
379 :ID: D53A7DA4-6940-4E0C-938E-08E12CC7EDEF
380 :END:
381 * TODO [#C] Use checkdoc on all files
382 :PROPERTIES:
383 :ID: 8D30489F-9000-43C3-BCA6-0C14F0E5C831
384 :END:
385 * TODO Use MIME attachments (application/x-chess-pgn) :FEATURE:
386 For sending e-mail chess games back and forth.
387 :PROPERTIES:
388 :ID: B01A0B43-12F3-4978-A63A-01ADBA9BB78D
389 :END:
390 * TODO Use TrueType or other chess fonts for displaying positions :FEATURE:
391 This might be the best way of displaying positions on Windows.
392 :PROPERTIES:
393 :ID: 0387D818-3841-4BA1-A246-F48349F4A53F
394 :END:
395 * TODO Using gnuplot-mode, allow evaluation trends to be plotted :FEATURE:
396 :PROPERTIES:
397 :ID: BC458171-65B7-4CAE-ACF5-9FD0E263F425
398 :END:
399 * TODO Write chess-descriptive.el, and have the code in general use :FEATURE:
400 chess-ply-to-string and chess-string-to-ply, so that users can use
401 descriptive notationas an alternative to algebraic.
402
403 (NOTE: this might proof problematic since descriptive move notation is
404 ambigious if we don't have the full game information, since we need to
405 destinguish between QR KR QN and KN. So chess-descriptive-to-ply would need
406 to use a game object as reference, rather than just a position.)
407 :PROPERTIES:
408 :ID: 7C283CC8-450C-468C-93C3-C264CC8F536A
409 :END:
410 * STARTED display: Make it possible to "highlight the last move" :FEATURE:
411 - State "STARTED" [2008-09-01 Mon 03:59] \\
412 This is mostly done. I'd like to make the highlight done for the
413 opponent's moves
414 :PROPERTIES:
415 :ID: F55EAAA5-504E-44A5-AA1A-43516711F8DD
416 :END:
417 * DONE "End of file" error reading game 2008149
418 - State "DONE" [2008-09-01 Mon 04:11] \\
419 The problem was parsing [Event "Hello \"].
420 :PROPERTIES:
421 :ID: F994A8E9-5EDD-4681-863E-491806F0ED07
422 :END:
423 [2008-09-01 Mon]
424 * DONE Add an 'install' target to the Makefile
425 - State "DONE" [2008-09-01 Mon 04:02]
426 :PROPERTIES:
427 :ID: 7A27FDC0-0053-4656-9AC9-6D7BEECE6D4A
428 :END:
429 * DONE [#B] chess-auto.el is not being built properly :BUILD:
430 - State "DONE" [2008-09-01 Mon 21:16]
431 :PROPERTIES:
432 :ID: 184AF780-815B-43DB-87A4-0A81DE252AB0
433 :END:
434 [2008-08-31 Sun]
435 * DONE display: Display problem with chess-display-side-to-move
436 The text doesn't show the face in the modeline
437 - State "DONE" [2008-09-01 Mon 03:55]
438 :PROPERTIES:
439 :ID: 884690AC-C3BE-43D6-A600-48D221BD0FB0
440 :END:
441 * DONE [#B] ics: A refresh directive should act as a position assert
442 - State "DONE" [2008-08-29 Fri 06:28]
443 Compare with our current known board and trigger an error if it doesn't
444 match the refresh.
445 :PROPERTIES:
446 :ID: C0F3CD12-83C5-4970-AD27-8C4A4C447BC2
447 :END:
448 * DONE [#B] scid: chess-scid-get-result fails on some machines (timing?)
449 - State "DONE" [2008-09-17 Wed 05:49] \\
450 Fixed by adding more delays in case text has not appeared from the command.
451 - State "STARTED" [2008-09-16 Tue 04:38] \\
452 I believe I have a fix for this, commit
453 33d57dc0f667c8d1168b46f9e73d9510d8c7e518, but I must await Mario's test on his
454 8 CPU machine.
455 It happens on a fast 8-CPU machine of mine that chess-scid-get-result
456 returns the empty string. The reason for this is that sometimes, the prompt
457 is not output immediately after a result, so upon next call to
458 chess-scid-get-result the first output we see is the prompt ("% ") from the
459 previous command which due to the current algo results in
460 chess-scid-get-result returning "". It would need to continue reading if it
461 sees a prompt as first output. Waiting until we see a prompt to make sure
462 we have all the output results in *very slow* behaviour, maybe due to
463 line-buffering (the prompt has no final \n, obviously), so we probably shoud
464 skip over prompt and continue reading.
465 :PROPERTIES:
466 :ID: AF51A38C-36B6-4976-954D-0BCD6C1A81FD
467 :END:
468 [2008-09-08 Mon 23:41]
469 * DONE [#B] scid: The buffer needs periodic clearing, or it grows too large
470 - State "DONE" [2008-09-01 Mon 21:16]
471 :PROPERTIES:
472 :ID: 272CE75E-122A-4AEA-8A03-9CD2041895EA
473 :END:
474 [2008-09-01 Mon]
475 * DONE [#B] Sometimes a chess-test run fails to recognize promotions
476 - State "DONE" [2008-09-02 Tue 22:31] \\
477 Fixed. This appears to be a bug in looking-at/match-string, but it only
478 occurs under high load and certain circumstances. I was able to get around it
479 by examining the buffer directly.
480 - Note taken on [2008-09-01 Mon 05:35] \\
481 This happens on game 2030188.
482 :PROPERTIES:
483 :ID: 431304B0-E8B9-485E-82B5-D4DF900C27DF
484 :END:
485 [2008-09-01 Mon]