notbeckhamster / JavaChess

Chess GUI App
MIT License
2 stars 0 forks source link

Read desc about setAttackedSqrs mainly #21

Open notbeckhamster opened 1 year ago

notbeckhamster commented 1 year ago

since piece list wasnt sorted it was changing during perft since pass by reference in java, ie quick fix for perft in mean time ArrayList pieces = (ArrayList)piecesArr[i].clone(); cant quite think of a good DS for it

notbeckhamster commented 1 year ago

Well set attacked squares seems to be taking most of the cpu time understandbly but i suspect using arrays over array list will boost performance, may be smth to consider iwth bitboards can do this type of calc easily.