CodeItBetter Programming Another VB Programming Blog

Visual Basic 6.0 Chess Program Part 2

Posted on December 17, 2008
Visual Basic 6.0 Chess Program Part 2

this is my chess program written in VB6

some of my chess code.

Dim board(64) As Long

'constants for Abs(pin) direction
Const horizontal = 0
Const vertical = 1
Const diagonal1 = 2
Const diagonal2 = 3

Function comparePlane(square1, square2)
a = getA(square1)
b = getB(square1)
c = getA(square2)
d = getB(square2)
e = Sgn(a - c): f = Sgn(b - d)
comparePlane = GetPlane(e, f)
End Function

Function getA(a)
getA = a Mod 8
End Function

Function getB(a)
getB = Int(a / 8)
End Function

Function putAB(a, b)
putAB = a + b * 8
End Function

vb2008 vb 2008 visual studio 6 drag and drop
chess font chess game
Chess visual basic jrobichess capture king games vb vb6 tutorial

Related posts:

  1. Visual Basic 2008 – Talking Program – Tutorial – Ace™
  2. Visual Studio 2008 – Beeper
  3. Visual Basic 2008 – Font And Color
  4. Visual Basic 2008 Basic Web Browser Tutorial
  5. Visual Basic visual studio 2008 Relational DataBase Part2 2
  6. Visual Basic 2008 Program Control System
  7. Mastering Microsoft Visual Basic 2008
  8. Visual Basic 2008 Tuts ::: Web Seacher Tutorial
  9. My CoOl Notepad program made in Visual Basic 2008 express edition!
  10. Visual basic 2008 – How to make you’re first program

Filed under: Videos Leave a comment
Comments (12) Trackbacks (0)
  1. Youtube search

    Fishing Pole: First Blood pt 1

    Chess meet Rambo

  2. WTF how long did that take you

  3. it took me about 2 months to write the code and about another month of debugging and tweaking,
    i didnt work on it every day though. (sometimes yes everyday )

  4. wow .. well done!

  5. this program recently beat a 1000 elo player from FICS 3 1/2 out of 6 games. !!

  6. holy fuck man i should of made that shit for my ISU in Computer class

  7. what is ‘ISU’?

  8. Isu is the last big assignment in a class in highschool. In my computer class our Isu was to make a game with Visual Basic and I epic failed

  9. Hey. Nice! I’m trying to make a blackjack game and I can’t even do that.

  10. is that all the syntax you made? (on the right side)

  11. yep ;) thot id brag i sort of innovated that but its not really incredible but it works


Leave a comment


No trackbacks yet.