Computer Science Canada I need help creating checker pieces |
Author: | timmy otoole [ Tue Apr 24, 2012 10:32 am ] | ||
Post subject: | I need help creating checker pieces | ||
What is it you are trying to achieve? I am trying to create a checkers board game What is the problem you are having? I can't create the pieces Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <type oval:record xpos,ypos:int end record var ovals: array 1..12 of oval ovals(1).xpos:=120 ovals(1).ypos:=100
Please specify what version of Turing you are using 4.1.1 Thanks ![]() |
Author: | Beastinonyou [ Tue Apr 24, 2012 11:01 am ] | ||||
Post subject: | Re: I need help creating checker pieces | ||||
Ok.. you got the co-ordinates ready.. What else do you need to draw Checkers? You're going to need a width.. 2 different width's for an oval shape, or 1 width and use it for both the x_width and y_width to make a circle.. I'm pretty sure it's more common that checkers are circular rather than oval. Something along these lines would be good:
Something along these lines would be a relatively easy way to do things. Creating the checkers pieces is really easy.. You're just drawing an oval / circle for the pieces, but you have to keep track of all the piece's co-ordinates. Something like:
|