I'm no electromagnet expert and I was wondering if the following idea would work.
If I wound a core one direction, and halfway through, started winding in the other direction, could I create a usable electromagnet where the poles are the same on both ends?