Author Topic: Quads Board Game in QB64  (Read 4351 times)

0 Members and 1 Guest are viewing this topic.

Offline Donald Foster

  • Newbie
  • Posts: 63
    • View Profile
Quads Board Game in QB64
« on: September 07, 2020, 08:32:56 pm »
Hello Everyone,
Quads is a 2 player abstract strategy board game. The game is played with 36 tiles on a 6 X 6 game board. Player 1 plays 1 neutral tile and 17 light colored tiles. Player 2 plays the other neutral tile and their dark colored tiles. The player who can not place a tile on their turn loses the game.

At the start of the game each player places their tiles face up on their side of the board in view of both players. There is a variation the players can choose to agree to hide their tiles from their opponent. In a real game the players would stand their tiles up facing them. On my game, the opponent’s tiles are removed from the screen while the player takes their turn.

The game starts with player 1 places their neutral tiles any where on the board. Then player 2 places their neural tile anywhere empty space on the board, except next the other neutral tile placed. Then players take turns placing 1 of their tiles on any empty space on the board that is next to an adjacent tile. The edges of the tile being placed must match the edges of the adjacent tile on the board. In example: If the adjacent tile edge has vertical lines, the tile being place must have mating vertical lines on the same edge face each other. The same is true if the tile has horizontal lines. However, 2 tiles adjacent from each other both has a solid edge, but different colors, these tiles are not a match and can not be placed next to each other, were as same color tiles can. There is a border that surrounds the game board with horizontal lines. A player does not half to match the edges of the border for a normal game. There is a variation to the game that players can agree to have to match the borders edges also. The players are asked at the beginning of the game, weather to use the variations or not.

Playing the game on the computer: The game starts with an empty game board in the center. Player 1’s tiles are positioned on the left side of the board, while player 2’s is on the right side. There is a white cursor surrounding player 1’s neutral tile. You are prompted to choose a location on the board to place that tile. After clicking on the location, the tile is moved to that location. Then the turn go to placing player 2’s neutral tile on the board. From this point forward, the players are asked to choose the tile to placed and a cursor will surround the tile when clicked on. If at that point you wish to choose a different tile, just click on that same tile again and you are unlocked from that tile and able to choose a different. After choosing a tile, the player is asked to choose a space to place the tile on the game board. After clicking the location, a cursor surrounds that space on the board and leaves a cursor at the location where the tile was selected. At this point, the tile is not permanently locked to that space. If the player decides to choose a different tile, they click on the location where the tile was taken from the table and the tile will be unlocked and returned to that location. If a player wishes to rotate the tile, while the mouse pointer is on the tile place, clicking the right mouse button will rotate the tile clockwise. If the player decides o keep the tile at that space on the board, while the mouse pointer over that tile, left click and the tiles is permanently placed there and the turn passes to the other player.

This game is playable, but not complete. I’m a still working on the game, but wanted to get it out there anyway. The parts I'm still working on: At the beginning of a players turn, the computer check every rotation of every player’s tile still on the table to see if it will fit onto the board. If it determined it can’t be placed, then that tile will be highlighted in white and grey on the table and can not be selected for placement during this turn. It may become playable on a future turn. If it is determined that none of the tiles are playable during this turn, the game is considered over and the winner is declared.

There are imperfections in the visualizations of the tiles and I am usually a more perfectionist in my graphics, but in this case, I think it’s good enough. Making the tiles look perfect could have been possible, but a tremendous about of work would have had to be put into it and it wasn’t worth it. I feel It’s good enough for an amateur game. I will be uploading the completed version when ready. Hope you enjoy playing. Pressing ESC will alternate between window and full screen.

Donald

* Quads Board Game Screenshot.bmp (Filesize: 2.82 MB, Dimensions: 1315x749, Views: 594)
Quads play4.jpg
* Quads play4.jpg (Filesize: 40.58 KB, Dimensions: 500x375, Views: 288)
* Quads1.bas (Filesize: 17.86 KB, Downloads: 260)
* QUADS-CLASSIC-USGB.pdf (Filesize: 170.79 KB, Downloads: 221)
« Last Edit: September 07, 2020, 10:41:55 pm by Donald Foster »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Quads Board Game in QB64
« Reply #1 on: September 07, 2020, 09:09:31 pm »
Oh man I have this game here at home. Haven't played it in ages :)

It's wooden and I like the designs.

Offline Donald Foster

  • Newbie
  • Posts: 63
    • View Profile
Re: Quads Board Game in QB64
« Reply #2 on: September 07, 2020, 10:01:55 pm »
bplus,

you'll have to download mine and try it out. The screenshot is from full screen image, I should have used a window view, it would have been smaller. I made my game board background darker than original to make more of a contrast between the board and the light colored pieces.

Donald
« Last Edit: September 07, 2020, 10:04:07 pm by Donald Foster »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Quads Board Game in QB64
« Reply #3 on: September 07, 2020, 10:17:34 pm »
OK, I hope you have directions :) wait, it might be in the long intro you gave at start.

« Last Edit: September 07, 2020, 10:18:35 pm by bplus »

Offline Donald Foster

  • Newbie
  • Posts: 63
    • View Profile
Re: Quads Board Game in QB64
« Reply #4 on: September 07, 2020, 10:21:12 pm »
The PDF I included and the information in the original post should get you going. As I mentioned it's not complete, but playable. You will have to decide when a player can't play any more tiles, just like the real game.

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: Quads Board Game in QB64
« Reply #5 on: September 08, 2020, 10:02:51 am »
This is a nice job. I've never played Quads game before.  Interesting game!

Thanks for sharing.

- Dav