So I'm programming a Tetris clone in Sepples and SDL. I need a method of generating a random number between 0 and 6 (seven different types of blocks) that gives a, more or less, even chance for each value to occur. I could use ctime and cstdlib to generate a pseudorandom number, then modulus that number by 7, but that wouldn't be an even chance. Some pieces would fall more often than others.
How does /prog/ get their pseudorandoms to be convincing?
Name:
Anonymous2009-11-15 15:30
>>21
I think he needs some serious psychological help.
Here's the comment that Dickie got epically trolled and butthurt by on Amazon:
Funny, funny, funny. For all the wrong reasons...
by The Pie Eater
So, a bit of background, I've been writing video games for 27 years, and Mat Dickie is a bit of a legend at the office - not for the games he creates, but for the frankly baseless belief he has in his own ability. All my colleagues were convinced he was a "character" - an avatar for someone he wanted to be; and so this thinly veiled autobiography appeared and I just had to read it. After a couple of chapters I thought, well, he's reasonably eloquent, maybe this character of a "maverick game developer" that he purports to be is just a bit of an act.
Several chapters in, and my word, this guy is a psychologist's dream - insecurities and over compensation for lack of social skills pour off the page - and in that regard it is a real page turner. I got more and more incredulous as I read through his thin tome; from his father's dalliances, to his love life. From his time in academia to his time "in the real world".
Some of the stories of game development in the book are truly cringe worthy and generally end with "unfortunately", as more and more ill-advised and badly conceived game software flops and flops again.
All in all, its not a bad book, and I'm sure in some ways it is inspirational - but not in the positive way that it alludes to. Its more of a series of excuses as to why a loner developer with delusions of grandeur and some serious psychosis failed terribly, but can't seem to accept that failure.
It certainly gets you into the mindset and thought process of young Mr Dickie, but its not a place any person would want to be.