NextPVR Forums

Full Version: GBChess (of some sort)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Thought I would have a play at writing a plugin - this is the first effort.

Basically, its a two player chess game.

Features:
It should only allow valid moves (won't allow en-passant or anything complex)
Will detect check or moves into check.

Non-Featured:
No single player
Doesn't detect checkmate/stalemate.
No skinning support - hard coded to the screen. Might fix this one day when I learn more.
Unfortunately, I had problems with trying to get the pathname within the plugin so it is hard coded to 'c:\program files\devnz\gbpvr\plugins\GBChess'.


Im sure there are bugs in there - If its anything not already noted feel free to comment but be aware this was more of a test than a proper plugin so I don't plan to spend a lot of time on it.
A screenshot

[Image: gbchess.jpg]
Just noticed a minor bug in the 'Check' routine which would return false-positives so here is an updated .DLL