Commit Graph
29 Commits
Author SHA1 Message Date
Albert Medela 65e10c71b0 run astyle 2017-08-16 13:55:18 +02:00
lotodore 45a5c7cef8 License change: OpenSSL exception (for Windows 8 support, because gcrypt does not work on Windows 8). 2012-12-25 15:06:23 +01:00
lotodore 21c1aa392e Android random number generator fixes (use deterministic rng on android). 2012-04-22 12:01:43 +00:00
lotodore 25ed93f477 Making cppcheck happy. 2011-12-23 17:14:36 +00:00
floty 385a641ede optimizing local sqlite-logging; implementing first steps network client sqlite-logging 2011-11-09 21:39:37 +00:00
lotodore 32843b2100 Use boost::random for random number generation. 2011-10-11 15:15:22 +00:00
floty 8c61403fb5 Switching license from GPL2 to AGPL3. 2011-07-03 22:27:36 +00:00
lotodore 4ec5f4eae9 Removing dependency to gnutls, only gcrypt is required now. 2011-03-08 18:42:57 +00:00
lotodore 3b3ca6339e Cosmetic changes. 2011-02-27 22:05:15 +00:00
lotodore 9e425136f1 Adding new types of random number generators: 1. shuffle a list non-deterministic (not the default shuffle) 2. get random numbers of a range 3. get random numbers of a range, without duplicates (the latest based on floty's idea). Note that the existing random number works quite well, the new approach uses boost::random and is more flexible if other distributions are needed for the AI.
The code is currently disabled due to link problems on debian/ubuntu (boost::random seems to be missing there).
2011-02-27 21:54:43 +00:00
floty 1f833d106a sqlite-log: implementing action logging 2011-02-27 00:03:39 +00:00
lotodore 02518c67b2 Reformatting code using Kernighan & Ritchie style, tabs, tab width=4.
Command line: astyle --style=kr --indent=force-tab=4 --lineend=linux -n -r <file names>
2011-02-11 20:02:08 +00:00
floty 1c5e5767da - exclude bad numbers in getRandNumber (tools.cpp)
- delete warnings in localplayer
2008-10-20 09:25:45 +00:00
floty 05737fb7e5 calcHandsChance 2008-10-17 11:25:58 +00:00
floty 77a66b310d calcHandsChance 2008-10-17 09:48:37 +00:00
floty 7f25130f66 calcHandsChance 2008-10-16 20:10:48 +00:00
floty 9fdd7805da calcCardsChance 2008-10-16 09:21:30 +00:00
doitux d8e70d997d gui cardchancemonitor 2008-10-15 19:49:39 +00:00
floty d3aed3209d calcCardsChance 2008-10-15 19:03:55 +00:00
doitux 01048bd7e9 next steps implementing cardschance 2008-10-14 20:19:37 +00:00
lotodore d7c6cdd75c Use GnuTLS-OpenSSL instead of OpenSSL. Thanks to Zhenech for help with this patch. 2008-04-21 22:27:15 +00:00
lotodore 477aeff288 Log if non-cryptographic random numbers are used. 2007-12-11 21:07:06 +00:00
lotodore d0898ed336 Now using openssl on windows instead of ms crypto api. Can't stand all these handles for the crypto api, openssl will be required later anyway. MD5 sums will be used when transfering avatars for efficient caching - avatars are identified by their MD5 sum.
Sorry for making it even harder to compile on windows...
2007-09-08 11:00:46 +00:00
lotodore 2ce67297ee Tools - random number function is now static. Fixed player number issue with network games (GUI player number needs to be 0), this still requires some work. 2007-05-21 19:00:06 +00:00
lotodore b7790e94ff 2007-03-02 00:04:18 +00:00
floty 520b22708e better random numbers (RAND_bytes) 2007-03-01 22:23:21 +00:00
floty 45c447c380 Eine Folge der Emanzipation des Kreuz Ass. Es ist ab jetzt vollkommen gleichberechtigt :-) 2007-01-21 12:40:13 +00:00
lotodore 9df9b8eede Removed C99 dynamic arrays for MSVC compatibility. 2007-01-19 23:23:25 +00:00
doitux 1e8152e97c 2007-01-13 18:55:48 +00:00