3 ms·
That seems like a difficult mistake to not notice while working on a "let me win" feature. For that matter, in general the code for "the computer should win ev
by philh 12y ago
That seems like a difficult mistake to not notice while working on a "let me win" feature.
For that matter, in general the code for "the computer should win every time" and the code for "the computer should lose every time" don't necessarily look anything like each other. They could do in this case, though. E.g. make the computer decide whether or not to bet based on the next card to be dealt, and accidentally reverse that test. (The test that he got backwards was clearly not "is the sense switch turned on?")