Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3D Chess Program in FreeBASIC
#1
Hi:

I have uploaded a 3D Chess program, FBChess, using OpenGL and the GFX lib to my web site at http://weekendcode.phatcode.net This is a mixed BASIC program, with the front end in FreeBASIC and the chess engine in BCX BASIC.

It has a model loader for static Milkshape 3d Models and demonstrates one way to manage fonts in OpenGL. It uses the WinAPI for its ini file, for its file open/save dialogs, and for DOEVENTS, but I tried hard to minimize all window specific code so I could think about making a Linux version. I did all the buttons and menu’s using font/graphics, so it would be independent of gui libs/dlls. The chess engine lib is in BCX but uses only generic code, nothing that will give problems porting.

I don’t even have a computer with Linux installed yet, but there is a first time for everything <grin>. Can you run an exe on one of those CD bootable versions of Linux?

I may convert the rest of the BCX code to FreeBASIC at some stage, but I was struggling a bit with getting pointers to work in FreeBASIC, and I have enough of it for now. Besides it works fine as is.

Perhaps I might get a few hints on finishing the project by making a Linux version? All window specific code is in one source file for easy review.

Have fun

Garvan
Reply
#2
A very nice program. The link above doesn't seem to work though. This should:

http://www.freewebs.com/weekendcode/index.htm
Reply
#3
Quote:A very nice program. The link above doesn't seem to work though. This should:

http://www.freewebs.com/weekendcode/index.htm

Both work equally well here with WinXP Home and IE V6.0.

What is the best format to post links in so they work with all browsers, all systems?

Thanks

Garvan
Reply
#4
That\s really nice man! really!

but could you make board to be rotatble from mouse left button for example?
url]http://fbide.sourceforge.net/[/url]
Reply
#5
Quote:What is the best format to post links in so they work with all browsers, all systems?

As you see Windows is very forgiving and IE tends to automatically translate "\" to "/" fo rthe user. The standard would be to use forward slashes "/" and a connect type (http, ftp, etc) like so:

http://www.freewebs.com/weekendcode

All browsers should automatically look for "index.htm" and use it if it exists in the desitination folder.
ature has its way of warning a person away from danger: The distinct black and white coloration on a skunk, the chilling buzz of a rattlesanke, a redneck handing you his beer and saying "Watch this!"
Reply
#6
Quote:That\s really nice man! really!

but could you make board to be rotatble from mouse left button for example?

Thanks for your comments. This is a good idea and easy to implement. I just added support for rotating the board using the mouse, and will update the website this weekend.

Right button down and drag to rotate, and move up/down, wheel to zoom.

Have fun

Garvan
Reply
#7
Quote:The standard would be to use forward slashes "/" and a connect type (http, ftp, etc) like so:

http://www.freewebs.com/weekendcode

All browsers should automatically look for "index.htm" and use it if it exists in the desitination folder.

Okay I got it now.

Thanks

Garvan
Reply
#8
Pretty cool, the application stopped responding though, when i did an ambiguous move. No crashes, looks like it entered into an infinite loop.. XP Pro, SP2.
Reply
#9
worked fine for me, same hardware too.

was the square highlighted red when u tryed to move it?
if it was blue its not going to move

pretty cool
i]"But...it was so beautifully done"[/i]
Reply
#10
Looks cool,.. but it crashes on me,.. or is running really slow on my system... fyi: Win98 that acks like a DOS... Maybe I'll try again tomorrow after I let it repair itsefl tonight.. :wink: .. been draging.. >_<

^_^
Kevin (x.t.r.GRAPHICS)

[Image: 11895-r.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)