Browse Search Popular Register Upload Rules User list Login:
Search:
Chess Game

Image:
screenshot of the scene

Author: s_noonan

Group: Technical

Filesize: 245.22 kB

Date added: 2021-02-14

Rating: 5.3

Downloads: 1262

Views: 235

Comments: 11

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Chess

Rev A: Improved recording of moves.
Rev B: Added Redo button.
Rev C: Fixed almost everything.

1647 Custom Lines of Code (CLOC)
Last edited at 2021/09/25 12:04:25 by s_noonan
Please log in to rate this scene
edit
Similar scenes
Title: Chess Game
Rating: 5
Filesize: 246.56 kB
Downloads: 715
Comments: 3
Ratings: 1
Date added: 2023/09/25 02:58:07
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: My version of Fareie Chess
Rating: 5
Filesize: 183.78 kB
Downloads: 597
Comments: 8
Ratings: 1
Date added: 2022/08/13 01:23:07
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: exploding chess board
Rating: 2.5
Filesize: 125.5 kB
Downloads: 201
Comments: 0
Ratings: 2
Date added: 2008/12/01 00:00:40
Made with: Phun
Rating: rated 2.5
download
Title: My game Done!
Rating: 5
Filesize: 0.6 MB
Downloads: 32
Comments: 3
Ratings: 1
Date added: 2009/03/14 10:26:18
Made with: Phun
no image found for this scene
Rating: rated 5
download
Title: PhunChess
Rating: 6.7
Filesize: 290.98 kB
Downloads: 358
Comments: 3
Ratings: 10
Date added: 2008/07/29 22:31:57
Made with: Phun
Rating: rated 6.7
download
Title: Upright Chess
Rating: 5
Filesize: 123.94 kB
Downloads: 727
Comments: 0
Ratings: 1
Date added: 2021/01/19 02:55:16
Made with: Algodoo v2.1.0
Rating: rated 5
download
This is one of the "better" Algodoo chess games I've seen so far. It provides certain automatic moves that other Algodoo chess games do not allow, such as 1. capturing 2. Pawn conversion to a Queen on the rear rank (although it's usually a choice of the player which piece he/she chooses the Pawn to be converted to).

There are a couple of important moves which your scene does not provide, and they are: 1. Castling in a single move. and 2. The "En Passant" rule.

Overall, good job! :tup:
Statement(S):"This is one of the "better" Algodoo chess games"
Response(R): If you find a better one than this one, then let me know so I can study it.

S: "it's usually a choice of the player".
R: I could program it in, but it seemed like a lot of work for little benefit. Since the rook and bishop moves are a subset of the queen's, I figure 3 out of 4 isn't too bad.

S: "There are a couple of important moves which your scene does not provide"
R: I agree, but those moves can be made manually in two steps if desired.
Of course how you program any Algodoo scene is your choice, even if not accurate in any manner. I happen to be a Chess player (a mediocre one, at best), and so I happen to know most of the esoteric rules that many casual players have never heard of. And so, as you stated, "it seemed like a lot of work for little benefit" is absolutely true, so please don't bother changing or adding anything unless you simply want to do it just for the sake of doing it.

S: "If you find a better one than this one, then let me know so I can study it."
R: I recall a chess game that kilinich posted a few years ago which had some automatic moves, but I don't remember specific details. That might be the most sophisticated one here on Algobox.

CORRECTION: kilinich posted a "Checkers" game, not a Chess game. Sorry...
Last edited at 2021/02/14 18:02:42 by Xray
Xray,

It was one of your comments on another chess scene that got me thinking about chess and finally making this scene. I see there are (24) scenes with "Chess" in the title and you have commented on (8) of them. I played a few chess games on chess.com since I started making this scene. Check chess.com out (if you haven't already).
S: "It was one of your comments on another chess scene that got me thinking about chess and finally making this scene. "

R: I am honored. :)
While I was playing with the "UnDo" and "ReDo" buttons (by the way, they both work as expected), a brief thought came to me. Would you have any interest in adding a feature to this chess game in which a person could play back complete championship games by world-famous Masters? There is a large list of recorded tournaments stored in chronological order HERE. I believe that this feature would be of great interest to any serious chess player.
Q: Would you have any interest in adding a feature to this chess game in which a person could play back complete championship games by world-famous Masters?
A: I will have to think about it. It may be a difficult task because the notation does not always indicate the specific item or the specific source location for each move, but relies on context, which is easy for a human to see, but may be hard to code.

I did record a championship game (after making sure the undo and redo arrays don't get blown away at startup), but when I saved the game and tried running it again nothing happened because all the entityIDs are reset at startup. So the first thing I would need to do is to work with item names instead of entityIDs.

P.S.: I knew that entityIDs get reassigned when a scene is loaded, I guess I just needed a reminder.
Last edited at 2021/02/18 08:57:53 by s_noonan
S: "the notation does not always indicate the specific item or the specific source location for each move, but relies on context"

R: Oh yes, I forgot about that pesky little detail. That certainly would make the programming task a lot more complex.

S: "...nothing happened because all the entityIDs are reset at startup. So the first thing I would need to do is to work with item names instead of entityIDs."

R: That's true. I remember I had to capture entityID's as soon as some objects were spawned in order to later use them in the scenes. It's an added step, but not difficult to do.
S: That's true. I remember I had to capture entityID's as soon as some objects were spawned in order to later use them in the scenes. It's an added step, but not difficult to do.

R: I do that all the time. The point that I was making is that, when you close and the reopen a scene, all new entityID's are generated.
The game still continues on Checkmate or captured king!
Yes, I did not code for that. I assumed that the user knows how to play chess.