In Progress

Computer Programming

Task

1-Create a new project and add the Oval and Rectangle classes to the package. Add a new Java class

to your project called GameBoard. Instantiate a new GameBoard object in the main method.

2. In the GameBoard class add import statements to allow access to the Color, and JFrame objects.

3. You need to define an instance variable of type JFrame called win.

4. In the constructor you should define the statements necessary to create a JFrame with the title “Tic

Tac Toe”. Use the setBounds(x, y, w, h) method to place the JFrame in the top left corner

of the screen with a width of 195 and height of 215.

5. Define a 2D array of type Rectangle to initialize the board so that it has three rows and three

columns of rectangles. Using a loop the board should alternate the colours of the individual

squares between red and black.

i want

Skills: Java

See more: java tic tac toe array, variable programming, variable in programming, top programming, red with black, programming variable, programming object, programming method, programming loop, programming in access, programming define, programming classes, programming class, programming board, programming array, objects in programming, object in programming, method programming, loop programming, java programming classes, java computer programming, define programming, define c programming, define computer programming, c programming define

About the Employer:
( 4 reviews ) Adelaide, Australia

Project ID: #2511568

Awarded to:

theincredible

can be done

$340 USD in 15 days
(16 Reviews)
4.8