thanks tabstop,
with the draw function it will keep everything the same - except it will draw the latest contents of the 2D array each time. I'll put this all in a while loop until EOF is pressed....
Type: Posts; User: bryce
thanks tabstop,
with the draw function it will keep everything the same - except it will draw the latest contents of the 2D array each time. I'll put this all in a while loop until EOF is pressed....
Alright, I have that problem solved - i'll update these threads as I get some ideas.
#include <stdio.h>
#include <stdlib.h>
/*
A Simple checkers game
By Bryce M
thanks guys,
is there a more efficient way of doing the above? I'm very new to C so I've never heard of conio. I'm using cygwin and context as a university page listed that as the bare minimum...
I'm new to programming - trying to make a checkers game in C.
I'm trying to print out a checkers board that resembles this
1 2 3 4 5 6 7 8
A | |0| |o| |0| |0|
B |0| |0| |0| |0| |
C |...
i edited the code and tested the fillarray function - and it produces the correct output
but I the draw array seems to not work here
//draw row
for(i=0; i<8; i++){
...
ahhh,
thanks for that.
I was implying - filling an 18x19 array up with all the numbers 1-8, letters A-H, and all the pieces - that way when printing the array out it can be done with two...
on second thought - wouldn't it be easier to have one 2D character array with all pieces, numbers, letters, bars etc - then drawing it with 2 for loops every time would be easier?
Brb redoing...
wow that was fast!
Thanks for the quick replies.
I've fixed the array boundaries - I guess thats why I kept going over.
Here is what I have so far.
#include <stdio.h>
Hi C people,
I'm trying to teach my self how to program in C and I'm generally new to programming. I've written some small programs with loops so far and now I'm trying to make a checkers game as...