add memory pool for positions

This commit is contained in:
2021-11-12 18:33:39 +01:00
parent 4442901b58
commit bd7d9f8551
10 changed files with 41 additions and 18 deletions

10
TODO.md
View File

@@ -2,7 +2,13 @@
### NEXT STEPS
### IDEAS
- `move_gen()`: `doit` is maybe redundant with test on current turn.
### IMPORTANT
- memory: plan for total memory release (pool, etc...) to please valgrind.
- not so easy: need to keep track of allocated blocks, **and** to understand that no object is in use.
- move.c, piece.c: function to remove an element from list.
- position.c: duplicate fully a position (including board & piece list)
- should move list be duplicated ?
### MISC
- `move_gen()`: `doit` is maybe redundant with test on current turn.
- should board be included in position ?