yeah, yeah, monday again. Every week the same, old feeling of trading free-time for work Trading 2 days of endless fun for 5 days of sleepyness and strange people roaming around you.
But that's not what im ragining about. Last week I told you that I'm working on my C++ skills and I thought of a program which is quite complex (for me).
Let me tell you about it:
Its a gambling game where you have a better chance of winning the higher your bet is.
At first you choose how many players are playing. Then my programm tells you that you have 100 points and there are 5 rounds to play.
Each round you can choose if you want to set points for increasing your winning chance or not. Then a random number generator generates a number between 1 and 100 for every player. The number of points you have set gets added to your random number and the player with the highest end-number wins the round. Everyone looses his bet expect the winner of the round who gains his random number as extra points.
If you dont have anything to bet anymore, you still play the game and get a random number each round but your chances to win are lower then the chances of your opponents.
After 5 rounds, the one with the highest number of points wins the game.
Sounds good and is rather complicated (for me) but somehow my program just wont work. I get stuck in an infinite loop and I just can't find out why.... aaaAARGH RAGE!
But sadly (and in like most situations of life) rage doesn't do anything so I just have to calm down, step back a few steps, take a deep breath and then look at it again.
Next status report when I'm right before destroying this world or when I have finished the "game".