Search:

Type: Posts; User: bryce

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,812

    thanks tabstop, with the draw function it will...

    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....
  2. Replies
    8
    Views
    1,812

    Alright, I have that problem solved - i'll update...

    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
  3. Replies
    8
    Views
    1,812

    thanks guys, is there a more efficient way of...

    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...
  4. Replies
    8
    Views
    1,812

    stuck - can't print out contents of array.

    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 |...
  5. Replies
    8
    Views
    3,359

    i edited the code and tested the fillarray...

    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++){
    ...
  6. Replies
    8
    Views
    3,359

    ahhh, thanks for that. I was implying -...

    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...
  7. Replies
    8
    Views
    3,359

    on second thought - wouldn't it be easier to have...

    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...
  8. Replies
    8
    Views
    3,359

    wow that was fast! Thanks for the quick...

    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>
  9. Replies
    8
    Views
    3,359

    Arghh passing 2D arrays to a func gives errors

    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...
Results 1 to 9 of 9