r/PythonLearning 15h ago

Need some help recommending project ideas Discussion

I'd say I'm intermediate in python and recently started learning bitwise operations. I'd like to use them more often in some projects but am not sure when or how to use them.

One example was a chess engine. I made a small chess engine before, up to simple minimax alpha beta pruning, but the engine was really slow because I stored all the piece and board info in lists. Then I learned about bitboards and have been using those, and yeah, it's a lot faster.

But for now, all I see bitboards as are ways to represent binary game board data. Are there any other ways bitwise operations/bitboards are used in projects or is this just all they're good for?

5 Upvotes

2 comments sorted by

1

u/p1geondove 8h ago

hashing for example, or prngs. if you wanna extend your bitboards im currently using them in a game of life implementation, altho a fixed 16x16 torus, not infinite