diff --git a/README.md b/README.md index 567154f..e557dc8 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Zig: 348ms Feel free to make improvements to any of the code. Some notes: -We test the opening chess position to depth 6. Target: 119,060,324 nodes --The max moves in a chess position are 220. I made moveList 250 just for safety. The max moves reached from any chess position +-The max moves in a chess position are 220. I made the moveList 250 just for safety. The max moves reached from any chess position from the start is 46. So you can set the move_list to 46 elements without an index error but this will make the algorithm break in any other position. -Another approach is to make the move_list global and use an index like this: @@ -61,7 +61,7 @@ Function example: return nodes; } - The max moves I found using this approach was around 150, so the global array could that size. + The max moves I found using this approach was around 150, so the global array could be that size. Again this will break in any other position with lots of moves or with more depth. I might test all code examples with 46 size move_list and global move_lists later.