Quote:
Originally Posted by blackmonsters
Googling poker hands and their value would be a normal thought process.
|
Indeed. He all you need to know as a coder:
Quote:
Originally Posted by ghjghj
|
Wow, must be written by some Einstein

The code can be reduced in about 10x times... When I was a kid, I was writing games for programmable calculators because I wasn't able to a4d a computer (hello CurrentlySobber ;)) So I wrote a 40-50 byte code to emulate a landing of space module to non-atmospheric space bodies like Moon. The program was controlling such parameters as time, speed, gravitation, the oxygen reserve, the mass of remaining fuel, the mass of the space ship, the trust vector and even the specific impulse of the rocket engine (everything straightly to physical formulas - the same ones that were used by Luna-9 or Apollo-11 modules). And all that, including the game component which allowed you to pilot the space ship was fitted in a 40-50 byte program

In those times we have counted every single bit of code.