I started programming this during 1997 using QuickBASIC 4.5 and my User Interface Library (TxMUI). Due to the limited nature of the QuickBASIC IDE I had to keep the source code slim & trim. Hence you won't find a lot of comments. But I believe that understanding this BASIC code should be a snap. Most of the code has remained virtually the same. Only the use user interface parts have changed. This source code has come a long way. First I used QuickBASIC 4.5 and TxMUI. Soon I upgraded to QuickBASIC Extended 7.0 and TxMUI. Next, I got hold of Visual Basic for DOS and ported the code for that compiler and changed all the UI code to "Ruby". Eventually, when I started using Visual Basic 6.0 for Windows, I ported this code and once again I had to changed the UI code. And now, thanks to Microsoft, I have ported the code to Visual Basic .NET! When porting for Visual Basic .NET I modularized and classified most of the code. Although most of the code was translated by the Visual Studio VB to VB.Net translator, I had to make a lot of changes. The AI is very silly and should have been much better. I should have used some kind of recursive method to find the best move. Since I don't have much time (for this code) I leave it up to you. The Think() function should be a very good starting point. Eventually I also cleaned up the UI. Building it in VB.NET from scratch eliminating all legacy UI code. This code frankly speaking is open source/freeware. You can do whatever you want with it. I do not accept responsibility for any effects, adverse or otherwise, that this code may have on you, your computer, your sanity, your dog, and anything else that you can think of. Use it at your own risk.
File List:
4Play/
0b
4Play/4Play.exe.manifest
1Kb
4Play/4Play.ico
4Kb
4Play/4Play.sln
1Kb
4Play/4Play.suo
7Kb
4Play/4Play.vbproj
5Kb
4Play/4Play.vbproj.user
2Kb
4Play/AssemblyInfo.vb
1Kb
4Play/ProjectResources.resx
306Kb
4Play/cls4Play.vb
14Kb
4Play/frmMain.resx
37Kb
4Play/frmMain.vb
71Kb
Similar code
Create a Direct3D Device in C# using DirectX
(Popularity: ) : In this tutorial I explained step by step how you can take your first step into directX programming in .Net, ... Connect4 - Java Applet conversion to C# Windows Application
(Popularity: ) : Pit yer wits against your computer in this AI version of Connect4.. A C# conversion of my java assessment which ... Comboling
(Popularity: ) : This is a game concepted by Jerom Lulling. Fun little thing that I played online and felt it should be ...