Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Move class with int and use 'Move' pool for MoveGenerator #174

Merged
merged 5 commits into from
Aug 21, 2022

Conversation

eduherminio
Copy link
Member

  • Replace Move class with MoveExtensions and apply global using Move =System.Int32
  • Rename MoveExtensions.New, simplify Game by removing intermediate move generating methods, optimize Game constructor
  • Modify MoveGenerator to use a pool of Moves rather than instantiating lists every time1
  • .ToList() optimization

@eduherminio eduherminio merged commit f64b9dd into main Aug 21, 2022
@eduherminio eduherminio deleted the perf/move-to-int branch August 21, 2022 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant