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.
Play FreeCAD chess, I made a board, pieces, macro
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Play FreeCAD chess, I made a board, pieces, macro
- Attachments
-
- points2.JPG (70.89 KiB) Viewed 3083 times
-
- bd_image.png (232.21 KiB) Viewed 4272 times
Last edited by freedman on Sat Jan 15, 2022 7:04 am, edited 2 times in total.
Re: Play FreeCAD chess, I made a board, pieces, macro
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
Thanks to openBrain, TheMarkster, onekk, Chris_G
- Attachments
-
- Chess1_start.FCStd
- (813.18 KiB) Downloaded 153 times
-
- Chess1.FCMacro
- (11.33 KiB) Downloaded 125 times
Last edited by freedman on Wed Dec 15, 2021 3:59 am, edited 2 times in total.
- JoeKundlak
- Posts: 54
- Joined: Mon Oct 11, 2021 11:35 am
Re: Play FreeCAD chess, I made a board, pieces, macro
I have no idea what I would do with this but... WOW! Very very nice!
Soon we will have a self-replicating FreeCAD
Soon we will have a self-replicating FreeCAD
Joe
---------------------------------------------------
translating into SK: https://wiki.freecadweb.org
---------------------------------------------------
translating into SK: https://wiki.freecadweb.org
Re: Play FreeCAD chess, I made a board, pieces, macro
I suppose you could make a move then send the FreeCAD file to someone, they make a move and send the file back, ect....I have no idea what I would do with this but
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
Ickby's CollaborativeFC addon should help you with that