LeftistTachyon / SimpleChess

My latest chess project! The next iteration up from OfflineChess.
MIT License
2 stars 0 forks source link

Big lag during move generation #5

Open LeftistTachyon opened 6 years ago

LeftistTachyon commented 6 years ago

Time for optimization

LeftistTachyon commented 6 years ago

Not much lag anymore

LeftistTachyon commented 6 years ago

It's back

VisionZ commented 6 years ago

I recommend resizing data structures to the max, for example, when allocating a list of Bishop moves, you should specify the capacity of the underlying ArrayList to be the maximum possible number of moves a Bishop may take at any time. By "moves" I mean tiles where said Bishop can move to during a turn. Best of luck bro!