Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Complete Beginner of C++ Graphics Programming(Help in simple checker game)

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Complete Beginner of C++ Graphics Programming(Help in simple checker game)

    Hi ! I am going to start making a simple checkers game. Could any one give an idea which part to begin with and any good resource that i can learn from? What actually i can do in the initialise and draw functions
    Thanks.

    #include"ccc_win.h" // main function for the execution of a graphics program int ccc_win_main() { // piece positions on the board const int numRows = 8; const int numCols = 8; int board[8][8]; // rowsxcolumns 8x8 square of a checkers board int new_game ; int exit_program;   // result of the game int result ; do { Initialise(board); // calling Initialise function  Draw(board); // calling Draw function result = PlayGame(board); // calling play function    // wait for new game or exit game button click while (result != new_game && result != exit_program) { // get a mouse Click }   } while(result == new_game);   return 0 ; }   // Function to initialize the board void Initialise(int board) {   // to draw a base big 8x8 square with small square drawn alternatively on top of the board	PenWidth pen1 = PenWidth(5);	PenColour redPen = PenColour(255 , 0,0);	PenColour blackPen = PenColour(0,0,0);	PenWidth penB = PenWidth(5);	BrushColour blackBrush = BrushColour(0,0,0);     // Line and points for the line Point origin(0,0); Point p(4 , 3); Point p1(-7,7) , p2(7,7); Line myLine(origin , p); Rectangle square(p1 , p2);     // to draw a black border of the board draw rectangle	cwin<< penB << blackBrush << square ;     } // Function to draw the board void Draw(int board) {   }   }


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Complete Beginner of C++ Graphics Programming(Help in simple checker game)

    This is a Java forum.

    Thread moved.

Similar Threads

  1. Programming AI for simple game?
    By YouGoLast in forum Java Theory & Questions
    Replies: 4
    Last Post: February 24th, 2025, 01:21 PM
  2. Need help with programming a simple password checker.
    By HappyCamper in forum What's Wrong With My Code?
    Replies: 22
    Last Post: September 1st, 2014, 12:32 PM
  3. Programming Issues simple Game
    By NaeGuk in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 10th, 2013, 10:07 AM
  4. (Beginner) Simple Application & Graphics Help
    By Neonomous in forum What's Wrong With My Code?
    Replies: 5
    Last Post: January 14th, 2013, 05:34 PM
  5. Beginner. Need Help finishing a simple Shoot em up game ASAP!!!!
    By cbock55 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 2nd, 2011, 08:13 AM

Tags for this Thread