Article View: rec.games.programmer
Article #1193Re: Help building a game?
From: Dr. Cat
Date: Fri, 13 Nov 1992 10:28
Date: Fri, 13 Nov 1992 10:28
12 lines
1198 bytes
1198 bytes
Generally, in the game of boxes, there are a certain number of moves that don't create a 3, which the players can safely take turns making until one of them is forced to make a 3 that the other player can score points from. If there's an odd number of these at the beginning of your turn, you're in good shape - an even number, and you're not. But some of these moves will render some of the other previously safe moves unsafe. You could have your program take a move that renders an odd number of other moves unsafe if it detects an even number of safe moves remaining, and preserve the status quo otherwise. Also, when forced to give away boxes, you should analyze all the moves to find the one that gives the opponent the least number of scorable boxes, which shouldn't be too hard to figure out.
Technical Details
Message-ID:
<1992Nov13.102850.27830@wixer.cactus.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!milano!cactus.org!wixer!catReferences:
<1992Nov12.183048.1308@schunix.uucp>Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!milano!cactus.org!wixer!cat From: cat@wixer.cactus.org (Dr. Cat) Subject: Re: Help building a game? Message-ID: <1992Nov13.102850.27830@wixer.cactus.org> Organization: Real/Time Communications References: <1992Nov12.183048.1308@schunix.uucp> Distribution: usa Date: Fri, 13 Nov 92 10:28:50 GMT Lines: 12