PROJECT IS DONE
The Game of Googol written in C
Public Domain
- Install GCC
- Install GNU GMP library
- Run this command:
gcc -lgmp -g .o gog gog.c && ./gog
You have x
numbers of cards. Each card have a number, between 1
(one) and 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
(googol).
Winner is person who finds largest number.
Be careful, you cannot retroactively choose number few cards before!
WARNING: If you want to try win this game without any help, (please) don't click me!
Divide number of cards with number e
(2.7182818284590452353602874713527...) and round result to nearest natural number. When your card's position is same as result moment ago, continue playing and when you get bigger number than on card with that position, quit playing.
Example: 10/e ≈ 4
- Card 4: 78 - CONTINUE PLAYING
- Card 5: 68 - CONTINUE PLAYING
- Card 6: 81 - QUIT