Did it Atlast....

This is a discussion on Did it Atlast.... within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I really like the game. Never used DOS graphics in my life, didn't realize that was possible. Good work....

  1. #16
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Posts
    5,439
    I really like the game. Never used DOS graphics in my life, didn't realize that was possible. Good work.
    Code:
    int main(void){srand(time(0));for(double l=rand(),l0=0,l00=0;;l0+=0.1){for(double l000=0;l000
    <1;l000+=.001,l+=((double)rand()/RAND_MAX)/0x64,l00+=((sin(l*0x8*atan(l0)*l000-(l0*0x8*atan
    (l)))*0.5)+0.5)){l00-=floor(l00);for(size_t l0000=0,l00000=(size_t)(0x50*(l00));l0000<l00000;++l0000
    )putchar(0x20);putchar(0x61+(int)((double)rand()/RAND_MAX*0x1a));putchar('\n');}}return 0;}

  2. #17
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Hi,
    Thank you.... I have now added one more feature to my game... The defeated pawns are shrunk and displayed on the right side of the screen........... Well and now i have a better interface.. will be posting it after removing some bugging bugs....

    Well i would appreciate if you guys gave me more ideas... And is it fine if i post the source here.(1400 lines..) do you guys have time to help me improve the coding structure....

    Thanx in advance
    Vasanth

  3. #18
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    The game is nice, but I think you should do two things:
    1- Let the player know what piece is selected.
    2- Make both the selection and the movment with the left mouse click.

    Good Job...
    none...

  4. #19
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Added that feature and made the mouse interface drag adn drop..

    I am planning to add an undo button to undo moves.. Any number of moves should be undone till the starting point is reached.. I was planing to use double linked list for this.. by keeping track of the changes in each node where each node represents a move.. Is there a better way of doing it... WHat do you think of using a file to store the moves instead of a list..

  5. #20
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    Why don't you attach the game after the modification...
    I would like to see it
    none...

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Scope of Pointer Variables
    By vlrk in forum C Programming
    Replies: 12
    Last Post: 03-25-2008, 05:55 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21