How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Scott Your Own Question

Scott
Scott, MIT Graduate
Category: Homework
Satisfied Customers: 3040
Experience:  MIT Graduate (Math, Programming, Science, and Music)
3546829
Type Your Homework Question Here...
Scott is online now
A new question is answered every 9 seconds

Can you help me with constructors Boardgametester.

Customer Question

can you help me with constructors for a Boardgametester.
Submitted: 1 year ago.
Category: Homework
Expert:  ATLProg replied 1 year ago.
Can you please all necessary details
Customer: replied 1 year ago.
What dou need from me?
Customer: replied 1 year ago.
Would you like a copy of my work?
Customer: replied 1 year ago.
I can't seem to get that file to you. I zipped It, but It won't let me send It. Bernie
Customer: replied 1 year ago.
I zipped the file with WinZip, but can't get WinZipe to open to get the file. I'll try later. Bernie
Customer: replied 1 year ago.
package games.board;
public class BoardGameTester {
public static void main(String[] args) {
int rows,cols;
rows = 3;
cols =3;
Board TicTacToe = new Board(rows,cols);
for(int r=0;r<rows;++r){
for(int c=0;c<cols;++c){
if(c%2 == 0 && r%2 == 0)
TicTacToe.setCell(Mark.NOUGHT, r, c);
else
TicTacToe.setCell(Mark.CROSS, r, c);
}
}
rows = 6;
cols = 7;
Board ConnectFourBoard = new Board(rows,cols);
for(int r=0;r<rows;++r){
for(int c=0;c<cols;++c){
if(c%2 == 0 && r%2 == 0)
ConnectFourBoard.setCell(Mark.YELLOW, r, c);
else
ConnectFourBoard.setCell(Mark.RED, r, c);
}
}
rows = 5;
cols = 8;
Board Mastermind = new Board(rows,cols);
for(int r=0;r<rows;++r){
for(int c=0;c<cols;++c){
if(c%2 == 0 && r%2 == 0 )
Customer: replied 1 year ago.
Mastermind.setCell(Mark.YELLOW, r, c);
else if (c%3 == 0 && r%3 == 0 )
Mastermind.setCell(Mark.RED, r, c);
else if (c%4 == 0 && r%4 == 0 )
Mastermind.setCell(Mark.MAGENTA, r, c);
else if (c == r)
Mastermind.setCell(Mark.BLUE, r, c);
else
Mastermind.setCell(Mark.ORANGE, r, c);
}
}
System.out.println("TIC_TAC_TOE Board:-");
System.out.println(TicTacToe.toString());
System.out.println("CONNECT FOUR BOARD:-");
System.out.println(ConnectFourBoard.toString());
System.out.println("MASTERMIND Board:-");
System.out.println(Mastermind.toString());
Expert:  ATLProg replied 1 year ago.
Can you upload all the files on wikisend.com and post file id here
Expert:  ATLProg replied 1 year ago.
Do you have any word/pdf related to this question. If yes
Can you please go to www.wikisend.com and upload your file ? Once you do that you will get a page that has the "File ID" and "Download Link". Copy the "Download Link" or "File ID" and please paste it in your reply here.
Customer: replied 1 year ago.
I uploaded the files. Boardgametester.class and Boardgametester.java The ID # *****
Expert:  ATLProg replied 1 year ago.
I will need other java or class file this program uses
Customer: replied 1 year ago.
I don't understand why you can't copy and paste the program in NetBeans or Jrasp I sent you on July 12/15. Then Run the
program and see what it tells you. Now it says it can't find the Main. Thanks Bernie