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 3 of 3

Thread: Easy Tic Tac Toe game and Applet Assignment

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Easy Tic Tac Toe game and Applet Assignment

    Hi, i'm not sure if this is the right forum to be posting it (i'm new) and i apologize if it is not, but i was wondering if you guys could help me with making an easy game like tic tac toe on BlueJ, using what you guys know.

    I also have a very difficult (for me) assignment in class, that i literally have no clue how to do. Ill post below what has to be included and maybe you guys could help me out. I'm sorry if this is a lot.

    Write an applet that lets the user draw quadrilaterals.
    As the user clicks a sequence of 4 points, count them and store their x- and y-coordinates in two arrays.
    These points will be the vertices of the polygon.
    When the user clicks the 4th time, draw the complete polygon.
    Draw it with a red interior and a black border.
    The user should then be able to start drawing a new polygon.
    Include a button the user can click to clear the applet or code so they can shift-click to clear it.
    Your programs must:
     Be an applet
     Use classes and encapsulation to make your code more useful, readable, and modifyable.
     Implement at least one EventListener



    Thanks so much


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,647
    Thanks
    45
    Thanked 1,959 Times in 1,933 Posts

    Default Re: Easy Tic Tac Toe game and Applet Assignment

    What have you done so far with your assignment?
    If you are having java programming problems please post the code and the error messages and/or your questions.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Super Moderator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,104
    Thanks
    169
    Thanked 780 Times in 726 Posts
    Blog Entries
    5

    Default Re: Easy Tic Tac Toe game and Applet Assignment

    This is not a code repository or a place where you can expect to get your homework done for you (in fact, any attempt to do so is academic dishonesty and will have repercussions). I recommend reading Norm's advice word by word, and answering his questions if you wish to receive help.

Similar Threads

  1. AS Assignment project - Creating a game in Greenfoot
    By ryan_fagan in forum What's Wrong With My Code?
    Replies: 6
    Last Post: April 5th, 2012, 01:07 PM
  2. Help with game applet
    By skerridge in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 28th, 2012, 01:24 PM
  3. guessing game assignment
    By scottey313 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 22nd, 2011, 06:52 PM
  4. help with board game assignment
    By pjay in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 19th, 2011, 12:58 PM
  5. Help with 1st Java applet game!
    By Sneak in forum Java Applets
    Replies: 0
    Last Post: November 28th, 2009, 10:20 AM