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

Show off your FreeCAD projects here!
Post Reply
freedman
Veteran
Posts: 2281
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

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

Post 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.
Attachments
points2.JPG
points2.JPG (70.89 KiB) Viewed 63 times
bd_image.png
bd_image.png (232.21 KiB) Viewed 1252 times
Last edited by freedman on Sat Jan 15, 2022 7:04 am, edited 2 times in total.
freedman
Veteran
Posts: 2281
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

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

Post 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
Attachments
Chess1_start.FCStd
(813.18 KiB) Downloaded 67 times
Chess1.FCMacro
(11.33 KiB) Downloaded 46 times
Last edited by freedman on Wed Dec 15, 2021 3:59 am, edited 2 times in total.
User avatar
JoeKundlak
Posts: 54
Joined: Mon Oct 11, 2021 11:35 am

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

Post 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-)
Joe
---------------------------------------------------
translating into SK: https://wiki.freecadweb.org
freedman
Veteran
Posts: 2281
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

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

Post 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. :)
User avatar
jonasb
Posts: 113
Joined: Tue Dec 22, 2020 7:57 pm

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

Post 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 ;-)
Post Reply