Enumerating all unique combinations of hole cards that can be dealt in Texas Holdem

I’ve written a holecard calculator that iterates over all unique possible combinations. However each added player increases the runtime by about 1000x. 3 players takes about 100 minutes single threaded and 4 players takes 1035x that. As you add more players the ratio of “repeats” increases dramatically e.g. player order does not matter so the…

Details

Dotnet core -> Best practice for web api content type when returning base64 string of jpg image

[Route(“image/{fileName}”)] [Produces(“text/plain or what???”)] public string image(string fileName) { byte[] b = fromsomewhere(); return “data:image/jpg;base64,” + Convert.ToBase64String(b); } What should i put in produces? Should i include “data:image/png;base64,” in the response or should this be set on the client instead?! I also considered using public dynamic image(string fileName) { byte[] b = fromsomewhere(); return new…

Details