https://github.com/a740g/fourup
Classic Connect 4 game
https://github.com/a740g/fourup
connect-four game inform inform-pe qb64 qb64-game qb64-pe qb64pe qbasic qbasic64 quickbasic quickbasic64
Last synced: 9 days ago
JSON representation
Classic Connect 4 game
- Host: GitHub
- URL: https://github.com/a740g/fourup
- Owner: a740g
- License: mit
- Created: 2020-05-15T13:43:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-11-23T00:26:01.000Z (2 months ago)
- Last Synced: 2025-11-23T02:24:07.177Z (2 months ago)
- Topics: connect-four, game, inform, inform-pe, qb64, qb64-game, qb64-pe, qb64pe, qbasic, qbasic64, quickbasic, quickbasic64
- Language: QuickBASIC
- Homepage: https://qb64phoenix.com/forum/showthread.php?tid=2437
- Size: 432 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# FOUR UP
[Four Up](https://en.wikipedia.org/wiki/Connect_Four) (also known as Connect 4, Connect Four, Plot Four, Find Four, Captain's Mistress, Four in a Row, Drop Four, and Gravitrips in the Soviet Union) is a two-player strategy game played on a 7-column by 6-row board. Each player has a color and drops successively a disc of his color in one column, the disc falls down to the lowest empty cell of the column. The first player to make an alignment of four discs of his color wins, if the board is filled without alignment it’s a draw game.

The source code has hopped several developer tools and operating systems. From the good old 16-bit MS-DOS to 64-bit Windows, Linux & macOS.
- [QB64-PE](https://github.com/QB64-Phoenix-Edition/QB64pe) + [Negamax](https://en.wikipedia.org/wiki/Negamax) solver
- [Visual Basic .Net](https://visualstudio.microsoft.com/free-developer-offers/) + [Minimax](https://en.wikipedia.org/wiki/Minimax) solver
- [Visual Basic .Net](https://visualstudio.microsoft.com/free-developer-offers/) + Crude solver
- [Visual Basic 6.0](https://winworldpc.com/product/microsoft-visual-bas/60) + Crude solver
- [Microsoft Visual Basic 1.0 for DOS](https://winworldpc.com/product/microsoft-visual-bas/10-for-dos) + Random play
- [Microsoft BASIC PDS 7.1](https://winworldpc.com/product/microsoft-basic/pds-71) + Random play
- [QuickBASIC 4.5](https://winworldpc.com/product/quickbasic/45) + Random play
The Visual Basic .Net sources can be found [here](https://github.com/a740g/FourUp/tree/c906e9fa1fca70ce31ccda98e93ee7e2fc280eef).
## FEATURES
- Works natively on Windows, Linux & macOS
- Uses [InFrom-PE](https://github.com/a740g/InForm-PE) GUI engine for [QB64-PE](https://github.com/QB64-Phoenix-Edition/QB64pe)
## USAGE
- Clone the repository to a directory of your choice
- Open Terminal and change to the directory using an appropriate OS command
- Run `git submodule update --init --recursive` to initialize, fetch and checkout git submodules
- Open *FourUp.bas* in the QB64-PE IDE and press `F5` to compile and run
## NOTES
This requires the latest version of [QB64-PE](https://github.com/QB64-Phoenix-Edition/QB64pe/releases/latest). QB64, or other forks of QB64 will not work!