Okay, so I’m making this chess program. Use the arrow keys to move the cursor around. Press Enter to pick a piece and then Enter to choose its destination. To deselect a piece, make an illegal move or press Enter on the piece again. Also, you can use the WASD keys to move the camera around.
Current version: 1.0
Recognizes all standard piece moves
Knows how to castle and when it can’t be done (mostly)
Recognizes en passant captures
Displays all possible moves for a highlighted piece
Recognizes most kinds of draws and checkmate
Weak computer players (look at the Init script for the power to activate/deactivate them)Current downfalls:
Changing selected piece: You can deselect a piece by trying to make it move to an illegal space, but I forgot to mention it or assign a key to do so.
Undo: Ehh…a feature with low priority.
Side swap: Won’t be implemented until I’ve got a decent camera system.
I like it. I especially liked the glowing move possibility indicators. They look slick. The game ran rather slow on my machine, though. Your Logic is very heavy. You don’t seem to be returning any errors, so optimization is the only thing that will speed it up. I really didn’t look at it that much, so I can’t offer much in the way of suggestions.
For a camera system, I recommend that you implement a full 360 rotation. If you do that, you’ll probably want to set up a system to auto-correct the directional keys to change with the rotation (so that up always goes away from the camera, down always goes toward the camera, etc.). The auto correcting keys are a little difficult to make (I just did that a few weeks ago for the Sokoban Project I’m working on), but it’s worth the effort because it gives really great gameplay.
I’m looking forward to computer opponents. I don’t much care for playing against myself. It’s too hard to win.
WOW! Sophisticated!
The weird thing to me is, you can code all this, but you couldn’t make a more
friendly interface, mouse grab maybe?
Anyway, it’s a great work! Bravo!
I used to play chess, when I was kid!
I’ll try to “test” the chess engine quality!
Bye
I won the first game, and im suprised i did because i am VERY bad at chess. and it took only two peasants (I thinnk they are named so)
Why is it that it uses so much power, i cant see anything (not many polys etc.) it it the pythons? I don´t know how but try make it use less power, so you can raise in polys instead.
You should include the version in the file. That way in case you mess something up and then save you don’t have to start over.
For example: “better_chess_1_0.blend”
Nice work! Coding a chess game is really more complicated than most would think. The models could use a bit of work though, but I’m guessing your primary focus now is on the programming.