A Game Board Maker Utility
Posted: Thu Jan 11, 2024 5:44 am
[Update - deleted attachment, see new upload for Rev. B of this utility]
Hi all,
In working on a chess game variant I am calling "Joshua Chess" I needed a basic chessboard. Of course that sent me off tinkering and I created a more general utility. This first version allows you to create and color the game board in a variety of grid sizes and using the Apple colors. I added a couple of buttons to make it easy to:
1. copy the board to the clipboard so you can paste into a new stack (you could do this manually of course.)
2. generate a custom script for the currently displayed game board and place it on the clipboard.
[Note: In testing I found I could paste into a field in a new stack but not into an open script. Once in a field the script can then be selected and copied into an open script. I was hoping to be able to open up say a new button script and paste the code in directly but no luck]
Goals: I need to move on to other projects but I can see adding options to modify the size of the squares, to provide RGB sliders to set the colors, and to scroll through newly created pattern sets to assign to alternating squares.
This was a fun little project. Happy coding, Mike.
Hi all,
In working on a chess game variant I am calling "Joshua Chess" I needed a basic chessboard. Of course that sent me off tinkering and I created a more general utility. This first version allows you to create and color the game board in a variety of grid sizes and using the Apple colors. I added a couple of buttons to make it easy to:
1. copy the board to the clipboard so you can paste into a new stack (you could do this manually of course.)
2. generate a custom script for the currently displayed game board and place it on the clipboard.
[Note: In testing I found I could paste into a field in a new stack but not into an open script. Once in a field the script can then be selected and copied into an open script. I was hoping to be able to open up say a new button script and paste the code in directly but no luck]
Goals: I need to move on to other projects but I can see adding options to modify the size of the squares, to provide RGB sliders to set the colors, and to scroll through newly created pattern sets to assign to alternating squares.
This was a fun little project. Happy coding, Mike.