Connect 4

Administrator
Member, Moderator, Administrator Posts: 2,506
Connect 4
"Connect Four" or "Four on a row".
The more you play, the smarter he gets. The computer will never lose the same way as before, because he learns from previously plaid games. Well, until you clear his history table...
http://www.mibuso.com/dlinfo.asp?FileID=1531
Discuss this download here.
"Connect Four" or "Four on a row".
The more you play, the smarter he gets. The computer will never lose the same way as before, because he learns from previously plaid games. Well, until you clear his history table...
http://www.mibuso.com/dlinfo.asp?FileID=1531
Discuss this download here.
0
Comments
-
Very nice! i lost so many times....Greetings from Switzerland0
-
Thanks!
I enjoyed it very much to make this program. I liked to analyse what is a good move and what isn’t.
Apart from the obvious choices (win when you can, prevent getting lost when possible and don’t give away your ‘traps’), the program is also searching for possibilities, and translates these into more or less points, depending on certain criteria. It is doing the same for his opponent (that is you), but then the points count negative. And it is using the history, like I wrote in the download-description already.
I also lose from him more than I win. Only my son of 8 won several times in a row…
Gr,
Peter0 -
I found one bug which is fixed by making the following change (//01- .. //01+) in function canWinInOne:
Function:canWinInOne(board : Code[50];columns : ARRAY [7] OF Integer;NoOfMoves : Integer;player : Integer;includeVertical : Boolean;VAR bestMove //CanWinInOne FOR col := 1 TO 7 DO BEGIN //01- //IF columns[col] <= 6 THEN BEGIN IF columns[col] < 6 THEN BEGIN //01+ ...
0 -
Connect 4
Update 12/08/2016:
The download files contain an upgraded version for the classic client (NAV2009) with some improved features and a bugfix, and a modern version developed in NAV2015. This version uses DotNet objects from System.Drawing to draw the board.
http://mibuso.com/downloads/connect-4
Discuss this download here.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions