summaryrefslogtreecommitdiffstats
path: root/monop
Commit message (Collapse)AuthorAgeFilesLines
* Use PREFIX nowCameron Katri2021-03-281-2/+2
|
* Get all the games compiling for iOSCameron Katri2021-02-222-5/+15
|
* PR/49513 - Henning Petersen -- tyopjnemeth2014-12-291-3/+3
|
* PR/49513 - Henning Petersen -- tyopjnemeth2014-12-291-3/+3
|
* WARNS=5dholland2012-06-1914-126/+91
|
* handle EOF in inputahoka2011-12-012-7/+12
|
* Avoid undefined behavior, from Chris Spiegel in PR 43860.dholland2010-09-261-3/+3
|
* sprinkle staticdholland2009-08-123-21/+22
|
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* Don't crash if we're asked to restore from /dev/null. (woops)dholland2008-02-241-2/+13
|
* Fix a bit more lint.dholland2008-02-243-12/+11
|
* Fix some more lint. (There's plenty to go around.)dholland2008-02-242-20/+22
| | | | | If we try to load a game and it bombs, keep prompting for another one, because if we try to continue with a half-loaded game we'll probably end up in trouble.
* Don't cast the return value of calloc.dholland2008-02-241-3/+3
|
* fix some lintchristos2008-02-245-23/+18
|
* need errno.hchristos2008-02-241-2/+3
|
* Update for today's changes: 1-player games are not allowed, and cards.pckdholland2008-02-241-8/+3
| | | no longer appears.
* Fix the OpenBSD housing shortage code.dholland2008-02-241-43/+63
|
* ret_card(), which I moved earlier, was consequently filed under the wrongdholland2008-02-241-2/+4
| | | source file name. fix.
* We do not need special code for pdp11. Also, because random() returns alldholland2008-02-241-26/+4
| | | good bits (unlike rand()) we can simplify this.
* Typo patroldholland2008-02-241-4/+5
|
* This file is also no longer used.dholland2008-02-241-122/+0
|
* Abolish the initdeck program and the weird little binary file it generates.dholland2008-02-246-391/+186
| | | | | | | | The card deck data is now compiled in. (And it always should have been, even back when memory usage counted. It's small.) This changes the save format slightly. (I am riding the previous breakage an hour ago and not providing compat. There should be no further breakage.)
* Source files should be named *.c or *.h, not random other things.dholland2008-02-2421-402/+241
| | | | | | | | Fold monop.ext (which was extern data decls) into monop.h and deck.h. Fold monop.def (which had definitions for the extern data) into monop.c. Fold brd.dat/mon.dat/prop.dat (which were array initializers for some of the data) into monop.c. Rearrange includes accordingly. No functional change.
* Remove last traces of old save/load code. We no longer need a privatedholland2008-02-244-505/+5
| | | copy of malloc.
* Sort out the memory leak fix properly.dholland2008-02-241-5/+3
|
* New save/load code. Related to (but not the same as) the new save/loaddholland2008-02-241-33/+501
| | | | | | | | | | code in OpenBSD. Note: this breaks compatibility with old save files. However, the old save files were missing critical information, had a completely insane format, and didn't work anyway. I will be riding this breakage with another breakage within a day or two when I fix the insanity in the card deck handling.
* Fixes from OpenBSD.dholland2008-02-231-4/+10
| | | | | | | | | | - If a player goes bankrupt buying a property (which shouldn't be allowed, but I guess it is), don't cause them to resign to themselves. - Use "NULL", not "0", for pointers. - Avoid undefined behavior adjusting the current player after resigning. - Don't leak the memory used to store player names. The last of these is disabled for the moment because we have the pointers in question tagged const. Will see to this when I'm finished merging.
* Fix from OpenBSD: don't say "1 houses".dholland2008-02-231-4/+5
|
* Bug fixes from OpenBSD:dholland2008-02-231-3/+7
| | | | - don't truncate unreasonably long player names when bidding; - don't allow players to bid more cash than they have.
* Bug fix: having $0 does not mean you need to mortgage something. Plus somedholland2008-02-231-18/+8
| | | | tidyup. From OpenBSD.
* More fixes from OpenBSD:dholland2008-02-231-20/+21
| | | | | | - initialize in the proper order - don't allow 1-player games - make the check for players named "done" work properly - a couple other minor things
* Sanity fixes for input handling. Suggested by OpenBSD, but different code.dholland2008-02-231-19/+17
|
* A first stab at supporting the housing shortage rules. From OpenBSD.dholland2008-02-232-10/+94
| | | (note: this is not fully correct - I will fix it when I finish merging)
* Don't increment booleans. From OpenBSDdholland2008-02-231-6/+6
|
* Sanity fixes for input buffer handling. From OpenBSDdholland2008-02-231-11/+7
|
* Improve the behavior of get-out-of-jail-free cards by returning them todholland2008-02-231-5/+38
| | | | the bottom of the deck when used. There are still a few other problems. From OpenBSD.
* Rename ->last_card to ->top_card to match OpenBSD (and also to makedholland2008-02-232-7/+7
| | | somewhat more sense...)
* Move ret_card() to cards.c, where it more rationally belongs. From OpenBSD.dholland2008-02-232-19/+19
|
* A few more whitespace/KNF. I keep hoping I've found them all...dholland2008-02-204-17/+14
|
* Add the sizes to the extern array declarations. This may not bedholland2008-02-201-6/+6
| | | | necessary, but it's safe and reduces unnecessary divergence. From OpenBSD.
* Use random() rather than rand(). Suggested by diffing against OpenBSD.dholland2008-02-202-6/+7
|
* Remove unused swap() macro.dholland2008-02-201-6/+1
|
* Don't misuse random strings as printf formats, even where it's harmless.dholland2008-02-201-3/+3
| | | Found by diffing against OpenBSD.
* One more (hopefully the last) whitespace fix.dholland2008-02-191-3/+3
|
* getinp() no longer magically treats the prompt arg as a printf format, sodholland2008-02-191-3/+3
| | | don't escape % as %%. From OpenBSD.
* Move function heading comments to something vaguely like the right place.dholland2008-02-191-7/+22
|
* KNF/whitespace nits. No functional changes.dholland2008-02-199-49/+53
|
* Fix bugs in debug printouts. From OpenBSD.dholland2008-02-191-8/+9
|
* Don't use sprintf; use snprintf.dholland2008-02-192-8/+10
|
* Don't use perror(); use err/warn instead.dholland2008-02-192-12/+9
| | | Suggested by diffing against OpenBSD.