Author Topic: Doubles Wild Board Game in QB64  (Read 4633 times)

0 Members and 1 Guest are viewing this topic.

Offline Donald Foster

  • Newbie
  • Posts: 63
    • View Profile
Doubles Wild Board Game in QB64
« on: January 18, 2019, 02:31:21 pm »
Hello All,

Doubles Wild is a 2 to 4 player strategy board game with some luck.

Object of the game:  The player scoring the most 3 in a rows at the end of the is the winner.
The ends when the current player taking their turn has no balls left to play.
If the game ends in a tie, the board is cleared and those players who tied, starts another game and the first player to get 1 or more 3 in a row wins.

The wooden board consist of 81 dimples where balls can be placed, 9 X 9 board. Around the outside of the dimples are row and column numbers from 3 to 11. Just outside the rows and column numbers are piece storage cutouts to hold each player's pieces. Outside the storage areas are peg holes to indicate how many 3 in a row each player has with peg in the first hole indicating none.
In a 2 player game, each player has 24 balls. Player 1 uses the blue balls and player 2 uses the red ones. With 3 players, each player has 18 pieces each. Player 3 plays the purple balls. With 4 players, each player has 12 balls and player 4 uses the green balls.

A turn consist of the player rolling 4 dice, 2 red and 2 blue. The red dice are added together and the total represents the red rows on the sides of the board. The blue dice are also added together with the total representing then blue columns at the top and bottom of the board. Example: Player rolls a red 5 & 4, blue 2 & 4. That would be Row 9, column 6.

A square cursor surrounds the numbers that's representing the rows and columns. There is also a round cursor at that board location if that position is playable. If that location already has the current player's piece on it or if an opponents piece is part of a 3 in a row at that position, that location is blocked and can not be played there. If the location is empty, the player may place their ball there. If an opponent has a piece there and it is not part of a 3 in a row, the player can declare a battle for that position.

If the player rolls doubles of the red or blue dice, they can place their piece at any playable location on the other row or column that not doubles. Example: If a player rolls double red 4's and a blue 3 and 5, the play may place their piece at any playable row on column 8 and vice versa. If the player rolls doubles on the red and blue dice, the player can place their piece at any playable location on the board. A ball is placed on the board by clicking at that location.
Each player, if chooses, may re-roll 1 or both pairs of dice once per turn. The player may re-roll 1 pair or all dice. If after the second roll, that position is blocked, that player ends their turn. If the location is empty, they must place their piece there. If the location is occupied by an opponent and not part of a 3 in a row, that player must engage a battle for that position.

Once battle is engaged, the battle board appears on right side of the screen. Both players use 3 dice each in the battle. The player that engaged the battle is the Attacker and uses the red dice. The other player is the Defender and uses the blue dice. The best of 3 rolls wins the battle. If the players tie after 3 rolls, the Defender wins the battle. At the start of the battle, all dice are blank. Both player uses the "R O L L   D I C E" button to roll their dice. The begins with the Attacker rolling first, then the Defender. The second and third rolls done the same. The Attacker choose which dice they wish to keep by clicking on the dice and a cursor will surround that dice. If clicked again, it will be de-selected. The players may choose 1, 2 ,3 or none of the dice to keep. The Attacker always rolls first. If the Defender wins the battle, their ball remains at that location and if the Attacker wins, their ball will replace the Defenders ball.

At the end of each turn, all 3 in a rows will be calculated and the player's peg position will be updated.

Hope you enjoy playing.

Donald
* Doubles Wild.bas (Filesize: 26.78 KB, Downloads: 250)
Doubles Wild Screenshot.png
* Doubles Wild Screenshot.png (Filesize: 197.64 KB, Dimensions: 1465x948, Views: 372)
Doubles Wild play.jpg
* Doubles Wild play.jpg (Filesize: 83.33 KB, Dimensions: 781x600, Views: 365)
Doubles Wild sheet.jpg
* Doubles Wild sheet.jpg (Filesize: 78.8 KB, Dimensions: 786x600, Views: 310)
« Last Edit: January 18, 2019, 02:34:54 pm by Donald Foster »

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Doubles Wild Board Game in QB64
« Reply #1 on: January 18, 2019, 11:48:07 pm »
Looks interesting.
but is there anyway of getting a slightly smaller screen size for it? can't fit enough of it on my screen to see whats needed and play it.
Granted after becoming radioactive I only have a half-life!

Offline Donald Foster

  • Newbie
  • Posts: 63
    • View Profile
Re: Doubles Wild Board Game in QB64
« Reply #2 on: January 19, 2019, 03:49:26 pm »
Hi Cobalt,

I wrote this on a 22" wide screen monitor and tried to guestamate how big it need to be to fit on a 20" wide screen monitor, thinking many people with desk tops would most likely at leak a 20" monitor since the're fairly cheap now a days. At least I get fairly cheap used monitors from Goodwill and Value Village. I stated writing it at work on my 22" and continued writing it at home on my 23". I should had pulled my 20" out of the closet and hooked it up. I figured almost everyone had at least a 20" monitor. Except Pete, who's still using his 17" CRT and running Windows XP. Just kidding he's upgraded to a 19" CRT.

When I started remaking my games a few years back, I was writing them on a HP laptop with 15" wide screen and I sized them to fit on a CRT. Then I started expanding the with to run on wide screen laptops. This time I increased the height and width.  I not able to resize the game very easily. Everything is draw at a certain size and location on the screen.

What size monitor are you using and what is the max. resolution you can use and I try to keep that in mind for future projects. What is the largest resolution other members here can us also. If we could get more input from other members also.

Donald

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Doubles Wild Board Game in QB64
« Reply #3 on: January 19, 2019, 04:10:45 pm »
Hi Donald,

I work exclusively from laptop 1280 x 760 max. You could make miniature version for your screen and then use _FULLSCREEN to increase board size to fit any screen (I think).

Offline Donald Foster

  • Newbie
  • Posts: 63
    • View Profile
Re: Doubles Wild Board Game in QB64
« Reply #4 on: January 23, 2019, 03:34:10 pm »
bplus,

Thank you for the advice using _FULLSCREEN. When I first started making my in QB64 a few years ago, I tried using _FULLSCREEN then, but with out the SCREEN _NEWIMAGE statement and the images were very distorted. So I used _NEWIMAGE for my games. It worked for me and I continued using it. But didn't know I could use _FULLSCREEN with it and it works just fine after reviewing the WIKI. I could ask the player if they want Full Screen at he beginning of the game and if they want to switch back, I could have them press a key, perhaps ESC, to return. I'll just heed to add that check in every input of my games.

Is there a key or combination of key presses to exit full screen. I can only exit by pressing CTRL, ALT, DELETE and running Task manager and exit the program.

Thank you very much.

Donald

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Doubles Wild Board Game in QB64
« Reply #5 on: January 23, 2019, 04:51:52 pm »
Alt + F4 is best escape from full screen, exits whole app; there is also Alt + Enter and then x box.