Domain Board Game in QB64 - Printable Version
+- The QB64 Edition (http://www.thejoyfulprogrammer.com/qb64/forum)
+ Thread: Domain Board Game in QB64 (/showthread.php?tid=395)
Domain Board Game in QB64 - Donald Foster - 06-07-2015 05:41 PM
Domain is a 2 player board game I originally wrote in GW-BASIC on the Tandy 2000 computer close to 30 years ago. It was the first complex game I wrote with a lot of variables to keep track of. I start remaking it in QB64 almost a year ago, but ran into a lot of errors, mostly typos. Not all of them were syntax errors, though I wished they were, easy enough to fix. Most of my errors wrong variable names with wrong values. I fixed problem after problem and got fed up with it and got put on the back burner with the rest of my games I have problems with. I finally dug it back out and hopefully fixed everything.
The game is played with 2 sided Tetris like pices on a 9 X 9 playing board. With player 1 white and player 2 is blue. Players take turns placing a piece on the board. At the beginning of the game, players choose between STANDARD LEVEL, INTERMEDIATE LEVEL AND EXPERT LEVEL. Choosing STANDARD LEVEL, both player can pick any piece to play from a pool of pieces both players have access to. Choosing INTERMEDIATE LEVEL, the pieces are slip up and each player has an equal amount of each piece.
When playing the STANDARD AND INTERMEDIATE LEVELS, when a player plays a piece on the board that is beside an opponents piece, each opponent's piece beside it flips to the players color. In EXPERT LEVEL, all the pieces surrounding the piece flips to the opposite color including the player's own pieces.
If a player can no longer play any pieces they have left, their turn is skipped until neither player can play another piece and the game ends. The winner is the player who has most of the squares on the board covered with their color. Each piece points is equal to the number of spaces it takes up on the board.
At the beginning of the game, players choose 1, 2 or 3 to choose the LEVEL. After the LEVEL is chosen, player 1's smallest piece is displayed on the right side of the board. Using UP ARROW and DOWN ARROW will advance through the playable pieces they have left. Pressing ENTER will choose that piece and and a small cursor block will appear in the center of the board. Pressing BACKSPACE will allow the player top select a different piece to play. Each piece on the right side of the board has 1, 2 or 3 small colored squares on them that indicate how the piece will be positioned. The cursors on the board will reflect the same colors as the blocks on the piece. The cross only requires 1 cursor location on the board to indicate the center of the the piece. The L shaped piece requires 3 cursors on the board to indicate first the location of the corner of the L and then the location of each leg of the L. All of the rest of the pieces only has 2 cursor locations on the board. At any time before the piece is placed on the board, you can press BACKSPACE to re-select the previous cursor.
I would suggest playing a few practice games to get a feel for how the game is played and how to place pieces on the board.
I have included a copy of the rules to the game.
Hope you enjoy playing.