Page 1 of 1

Play FreeCAD chess, I made a board, pieces, macro

Posted: Thu Dec 09, 2021 7:08 am
by freedman
The pic is here, I will post the file and macro in the second post, the files combined were too big. You can see the dialog upper right. Once enabled it shows you what to pick, a piece or a vertex. Once a piece is seleted the vertex (board square centers) will show in enlarged vertex, click on it and the last selected piece moves there.
The two side panels are there to hold taken pieces. You will need to move the taken pieces manually much like you would do with your hands. If you want to start a new game just reload the start file. Of coarse you can save a game by saving the FreeCAD file.

You might notice the board and panels are off-angle just a bit, that's because I really did this project to work on my Vertex-Assembler, this is the first step. When objects are moved they use global coordinates for placements and they land Sketch Normal.

Have fun!

Edit: Adding another pic of the board with the vertex highlighted, I use this new feature as a landing zone. There is a vertex under every part and centered on every square.

Re: Play FreeCAD chess, I made a board, pieces, macro

Posted: Thu Dec 09, 2021 7:10 am
by freedman
Here you go, file and macro. The FreeCAD file uses Links to make it small enough to post here. I made this on V0.20.259. Open the file and start the macro, there is an Enable button on the simple dialog to turn on moving.

Thanks to openBrain, TheMarkster, onekk, Chris_G

Re: Play FreeCAD chess, I made a board, pieces, macro

Posted: Thu Dec 09, 2021 9:07 am
by JoeKundlak
I have no idea what I would do with this but... WOW! Very very nice!

Soon we will have a self-replicating FreeCAD 8-)

Re: Play FreeCAD chess, I made a board, pieces, macro

Posted: Fri Dec 10, 2021 3:47 pm
by freedman
I have no idea what I would do with this but
I suppose you could make a move then send the FreeCAD file to someone, they make a move and send the file back, ect....
Isn't that why the internet was made, to flip a light switch the data has to go thru a satellte. :)

Re: Play FreeCAD chess, I made a board, pieces, macro

Posted: Fri Dec 10, 2021 5:26 pm
by jonasb
freedman wrote: Fri Dec 10, 2021 3:47 pm I suppose you could make a move then send the FreeCAD file to someone, they make a move and send the file back, ect....
Ickby's CollaborativeFC addon should help you with that ;-)