News for hackers. Stuff that matters.
Re:Automating Card Games Using OpenCV and Python by jrockway on Sunday June 16, 2013 @06:22PM (#5890275)
The real takeaway from this article is that O(n^2) and O(n!) algorithms are fine when your input size is 52 and 4.
Re:Automating Card Games Using OpenCV and Python by arnabdotorg on Sunday June 16, 2013 @06:46PM (#5890375)
Haha, sure. Since this was a random fun project, the code was written with the objective function being "least amount of code to get the job done well enough" :)
Re:Automating Card Games Using OpenCV and Python by skeletonjelly on Sunday June 16, 2013 @09:10PM (#5890842)
As it should! Too often I get stuck in a rut, inspired by the myriad of articles I read about certain patterns and libraries, that I take too long to get a simple task done with my head in the wrong space. Good work! You can't refactor code you've haven't written.
Re:Automating Card Games Using OpenCV and Python by icefox on Monday June 17, 2013 @08:01AM (#5892661)
In a similar vein, the complexity and suggested data structures for the input sizes: http://www.infoarena.ro/blog/numbers-everyone-should-know