Foursight Board Game in QB64
06-01-2015, 06:17 PM (This post was last modified: 06-01-2015 07:12 PM by Donald Foster.)
Post: #1
 (Print Post)
Hello all,

Foursight is a 2 player board game I originally wrote over 25 years ago in GW-BASIC. I have slightly modified the graphics to make the pieces look more 3D. I believe there is also a iphone app game. What makes this game very interesting is that you play half of your pieces and your opponent plays the other half of your pieces.

The object of the game is to either get 4 of your pieces in a row or get 4 sets of 3 in a row through a series of rounds. Rows of 3's and 4's can be form up and down, across and diagonal.

The game board is a 4 X 4 with places to stack your pieces to be played. There are also on the top and bottom of the board 5 positions to place a scoring marker numbered from 0 to 4. Each player has 8 white base pieces (2 stacks of 4), 4 of their color playing pieces and 4 of their opponent's pieces. Player 1 is gold and plays the pieces on the left side of the board and player 2 is red-orange and plays the pieces on the right side of the board. Player 1 has a gold arrow as a cursor to select a stack of pieces to play 1 from and player 2 has the red-orange cursor.

After choosing which color piece o play by pressing ENTER with arrow pointing to the desired stack, another cursor (white) appears on the game board. Use ARROW keys to move the cursors. If after you choose a piece to play and you wish to change your mind, press BACKSPACE to choose a different piece.

The basic rules are: Players take turns placing a piece on the board. A white base piece must be played at a location before a colored piece can be played at that same location. Only 1 colored piece can be stacked on a base piece. As each player creates a 3 in a row, their color marker will advance. If after all the pieces are played on the board and neither player has a 4 in a row or have no made 4 3 in a rows, the
board is reset and another round starts.

At the beginning of the game, you have the option of playing the Manic variation. On this option, players only play on 1 level, no stacking pieces on the game board. Each player has 3 of their color pieces, 3 of their opponent's color pieces, 1 white piece which is played as a wild piece and 1 white dead piece (upside down). The white wild piece can be used to make patters for both players. So, it is possible for both players to form 3 in a row and 4 in a row on the same move. Not listed in the rules, but I added to the game: If after placing a wild piece, there is a 4 in a row formed for both players, the game is a draw. And if after placing a wild pieces the 4th 3 in a row is made for both players, then the game is a draw. If after placing a piece and more than 4 3 in a row has been made, the player is only credited for 4.

I found a unique situation while playing this game with myself, you might want to try to avoid. If player 1 plays up all 8 of their base tiles and player 2 is stacking a colored piece on each one, when it gets back to player 1's turn again, they have no legal moves left, because they have no more base piece left to play and they can't play a colored piece because there's no vacant white base pieces on the board. After thinking about this problem, I decided to do nothing, but advise of the situation. The computer won't find that situation for you. You'll just have to restart the game.

I have included a copy of the rules.

Hope you enjoy playing.


Attached File(s) Image(s)

.bas  Foursight.bas (Size: 16.1 KB / Downloads: 39)
.pdf  Foursight(1985)Lakeside.pdf (Size: 301.54 KB / Downloads: 45)
.txt  Foursight.txt (Size: 2.23 KB / Downloads: 41)
Find all posts by this user
Like Post
06-04-2015, 06:16 AM (This post was last modified: 06-04-2015 06:16 AM by Anthony.R.Brown.)
Post: #2
 (Print Post)
Another Great game Donald Smile where do you find them ?

I have another idea for you...have you ever thought about opening a "History of Board Games Museum"


Below are some Computer Games Museum & Historic...

Find all posts by this user
Like Post
06-07-2015, 03:33 PM
Post: #3
 (Print Post)

Thank you for the replay and trying out my game. I did add a little 3D to this game, not much. The videos you posted are very interesting.

Find all posts by this user
Like Post
06-12-2015, 03:37 PM
Post: #4
 (Print Post)

I am going to have to play this game a little bit more, as I haven't quite figured out what I am suppose to do.

The graphics are awesome, and the UI was very easy, but my lack of understanding the game made me scratch my head a bit. I will have to read up on the game to learn how to play it.

Thank you so much for sharing this awesome game. I have never heard of it before (as with a lot of the games you have shared), and it makes me want to go out and buy them.

Walter Whitman
The Joyful Programmer
a.k.a: Waltersmind
Please visit my website at:
Please subscribe to my YouTube Channel at:
Please visit me at FaceBook:
Please follow me at Twitter:
Please follow me at Google+:
Please Visit me on Pinterest:
Please Visit me on LinkedIn:

Dedicated to working with computer programming hobbyists, tinkerers, amateurs, and enthusiasts.
Find all posts by this user
Like Post
06-12-2015, 09:24 PM (This post was last modified: 06-12-2015 10:03 PM by Donald Foster.)
Post: #5
 (Print Post)
The game is really easy to play. At the beginning of the game when you asked to play the Manic, just select No til your used to the regular version first. The game is a simple 4 in a row game. However, before a colored piece can be played, there must white base piece played in that position first. Take a look at the second screenshot I posted, all of the colored pieces are played on op of a white piece. And there's a empty base piece played also. One of the pictures I posted might be a bit confusing. There's a picture of white pieces with 2 colored pieces stacked on top of it. That is NOT how the game is played and hey shouldn't have taken a picture with that arrangement. But, I used the picture because it shows a good image of all the colors. The second thing you should keep in mind is that you are playing half of your opponent's pieces and they are playing half of yours. So be careful of what pieces you have left to play and where you play the base pieces. Your also opponent wins if you make a four in a row of their color and vise versa. If after all the pieces are played and no winner, another round starts. Also, a player wins who ever gets 4 sets of 3 in a row.


I found a problem with the version I uploaded. It only looked for a win for the current player. Keeping in mind that the opponent can be the winner also, I modified the code to look for both winners. I have included a updated version attached here.

Attached File(s)
.bas  Foursight.bas (Size: 16.11 KB / Downloads: 28)
Find all posts by this user
Like Post

Forum Jump:

User(s) browsing this thread: 1 Guest(s)

QB64 Member Project - Isolation
QB64 Member Project - Blokus
QB64 Member Project - STxAxTIC 3D World
QB64 Member Project - Overboard
QB64 Member Project - Inside Moves
QB64 Member Project - Foursight
QB64 Member Project - Splatter
QB64 Member Project - Pivot version two
QB64 Member Project - Connect Four
QB64 Member Project - Amazon
QB64 Member Project - Color Rotating Text
QB64 Member Project - Bowditch curve
QB64 Member Project - Martin Fractals version three
QB64 Member Project - RGB Color Wheel
QB64 Member Project - Kobolts Monopoly
QB64 Member Project - Full Color LED Sign
QB64 Member Project - Dreamy Clock
QB64 Member Project - Rotating Background
QB64 Member Project - Dakapo
QB64 Member Project - Sabotage
QB64 Member Project - Spiro Roses
QB64 Member Project - Spinning Color Wheel
QB64 Member Project - Point Blank
QB64 Member Project - Quarto
QB64 Member Project - Martin Fractals version two
QB64 Member Project - 9 Board
QB64 Member Project - OpenGL Triangles
QB64 Member Project - Qubic
QB64 Member Project - Martin Fractals version one
QB64 Member Project - Basic Dithering
QB64 Member Project - Red Scrolling LED Sign
QB64 Member Project - Score 4
QB64 Member Project - Domain
QB64 Member Project - Line Thickness
QB64 Member Project - Kings Valley verion one
QB64 Member Project - Kings Vallery version two
QB64 Member Project - ARB Checkers
QB64 Member Project - Input
QB64 Member Project - Touche
QB64 Member Project - Martin Fractals version four
QB64 Member Project - Rubix's Magic
QB64 Member Project - Pivet version one
QB64 Member Project - Algeria Weather
QB64 Member Project - Exit
QB64 Member Project - Swirl
QB64 Member Project - MAPTRIANGLE
QB64 Member Project - Kings Court
QB64 Member Project - Color Triangles
QB64 Member Project - Othello