Page 1 of 1

How do you create Draughts/Checkers game?

Posted: Thu May 09, 2013 6:43 pm
by applepie
Hello, I am a GCSE Computing student who would like to create their own draughts game but I am having trouble creating one because I don't know how to start it. I am currently struggling to programme where the draughts pieces are allowed to go and not allowed to go like making them go diagonal only and not left or right.

Re: How do you create Draughts/Checkers game?

Posted: Fri May 10, 2013 5:08 am
by Simon
Hi applepie,
Welcome to the forum!

You've asked a pretty broad question here which is probably why no one has posted an answer. Would really help if you narrowed down the question like: "How do I make a checkerboard grid in LC?"
Or: "How do I move the checker pieces using LC?"
And the most difficult one: "What is the logic used in a checkerboard game?" Actually the first two may be enough to help you work out the third.

The first thing I'd answer but you didn't ask was: "Can a person use LC to build a checkers game?" The answer is yes most definitely!

The first question is easy, just start with drawing rectangles (is it 64 of them?) once you get one line done just copy paste and position the rest. Now, very important, make sure you name each of the rectangles differently with a logic to them (eg x1y1, x2y1 etc. Do not use numbers only as that will mess you up when it comes time to add the game playing).

Ok I'll stop there incase you've found something else to do. Ask more questions and you'll get answers.

Simon