I guess anyone can help me with my wifi...

I am unable to connect my imac to internet via wi-fi.
It works perfectly with the ethernet cable and all other computers and telephones at home work correctly by wi-fi.
So it is about the imac.
I have tried to reset the router but it didn't work.
It may be something simple but I can't manage... thanks everybody
Xavi

From the menu bar, select
 ▹ System Preferences... ▹ Network
Click the Assist me button and select Assistant. Follow the prompts. How far do you get?

Similar Messages

  • I just buy a imac 27inch when after intalling everthing for windows 7 and all the drivers i need and goes to the restard part my imac just goes to a black screen with a blinking cursel and it just wont proceed anyone can help me with this?

    i just buy a imac 27inch when after intalling everthing for windows 7 and all the drivers i need and goes to the restard part my imac just goes to a black screen with a blinking cursel and it just wont proceed anyone can help me with this?

    Support articles for things like this would be here:
    http://www.apple.com/support/bootcamp

  • Hi. Since I installed the Maverick I can't open anymore the Calendar App as also the App Store. Anyone can help me with that?

    Hi. Since I installed the Maverick I can't open anymore the Calendar App as also the App Store. Anyone can help me with that?
    Thank you in advance

    I have this same problem on my iMac since installing Mavericks. The emails download, I can see who they are from and when they came, but nothing shows up in the message pane. I can see emails I got before I installed Mavericks, although about half of them did disappear. Sure would like to find a fix--perhaps the 10.9.1 update will do it?

  • Does anyone can help me with Typical issues to deal with when rolling out ERP in Japan?

    Does anyone can help me with Typical issues to deal with when rolling out ERP in Japan?

    If it were me I would schedule an appointment at the store where you bought it and meet with the Manager of the store in person. Print this post and bring it with you along with your iMac.
    And change the password on your Apple ID and then see if there are in purchases in your account that you did not make. If there are then someone did get your ID and password. If not someone got your Credit Card information from somewhere and used it.

  • Hi,after upgrade to OS x mavericks i can't open my windows at BOOTCAMP, anyone can help me with this situation?

    HI after i upgrade to new Os x Mavericks i found that i cant open my WINDOWS in my BOOTCAMP, its always appear asking me to windows running or not well shut down properly message, after i try to go to RUNNING WINDOWS NORMALLY it stil cant open and auto open and running on MAC. anyone please help me. Thank you

    Ok this worked to solve the error.
    Use cmd prompt in windows 7 or 8 and run as admin:
    sc config lanmanworkstation depend= bowser/mrxsmb10/nsi
    sc config mrxsmb20 start= disabled
    No need for all that power shell nonsense as shown elsewhere for windows 8.
    That's it. Also force smb2 disabling on the apple side for good measure.
    With the above I was able to network mavericks and windows 8.1 pro flawlessly. He issues I had before where I could not read video, ISO and audio files (but could open documents and pictures from the windows machine connected to an apple network share folder went away.

  • I was wondering if anyone can help me with a jquery change() integration issue?

    I have tested the following script on a simple html page on my computer and it workd perfectly:
    However, when posting it to BC withing a template, for some reason the .change() alert gets copied 4 times. You can see it at the following link: http://www.bebemoda.co.uk/test-1?Preview=True
    Not sure if this is due to interference form other scripts and am not able to figure out the problem.
    Would anyone be able to helpn me solve this issue?
    Thanks
    <!DOCTYPE html>
    <html>
    <head>
      <style>
      div { color:red; }
      </style>
      <script src="http://code.jquery.com/jquery-latest.js"></script>
    </head>
    <body>
      <select class="cat_dropdown" id="ShippingCountry" name="ShippingCountry">
        <option selected="true">-- Select Country --</option>
        <option value="AF">AFGHANISTAN</option>
        <option value="AL">ALBANIA</option>
        <option value="DZ">ALGERIA</option>
        <option value="AS">AMERICAN SAMOA</option>
        <option value="AD">ANDORRA</option>
        <option value="AO">ANGOLA</option>
        <option value="AI">ANGUILLA</option>
        <option value="AQ">ANTARCTICA</option>
        <option value="AG">ANTIGUA AND BARBUDA</option>
        <option value="AR">ARGENTINA</option>
        <option value="AM">ARMENIA</option>
        <option value="AW">ARUBA</option>
        <option value="AU">AUSTRALIA</option>
        <option value="AT">AUSTRIA</option>
        <option value="AZ">AZERBAIJAN</option>
        <option value="BS">BAHAMAS</option>
        <option value="BH">BAHRAIN</option>
        <option value="BD">BANGLADESH</option>
        <option value="BB">BARBADOS</option>
        <option value="BE">BELGIUM</option>
        <option value="BZ">BELIZE</option>
        <option value="BJ">BENIN</option>
        <option value="BM">BERMUDA</option>
        <option value="BO">BOLIVIA</option>
        <option value="BW">BOTSWANA</option>
        <option value="BR">BRAZIL</option>
        <option value="BG">BULGARIA</option>
        <option value="KH">CAMBODIA</option>
        <option value="CM">CAMEROON</option>
        <option value="CA">CANADA</option>
        <option value="CV">CAPE VERDE</option>
        <option value="KY">CAYMAN ISLANDS</option>
        <option value="CF">CENTRAL AFRICAN REPUBLIC</option>
        <option value="TD">CHAD</option>
        <option value="CL">CHILE</option>
        <option value="CN">CHINA</option>
        <option value="CX">CHRISTMAS ISLAND</option>
        <option value="CO">COLOMBIA</option>
        <option value="CK">COOK ISLANDS</option>
        <option value="CR">COSTA RICA</option>
        <option value="HR">CROATIA</option>
        <option value="CY">CYPRUS</option>
        <option value="CZ">CZECH REPUBLIC</option>
        <option value="DK">DENMARK</option>
        <option value="DJ">DJIBOUTI</option>
        <option value="DM">DOMINICA</option>
        <option value="DO">DOMINICAN REPUBLIC</option>
        <option value="EC">ECUADOR</option>
        <option value="EG">EGYPT</option>
        <option value="SV">EL SALVADOR</option>
        <option value="GQ">EQUATORIAL GUINEA</option>
        <option value="EE">ESTONIA</option>
        <option value="ET">ETHIOPIA</option>
        <option value="FK">FALKLAND ISLANDS (MALVINAS)</option>
        <option value="FJ">FIJI</option>
        <option value="FI">FINLAND</option>
        <option value="FR">FRANCE</option>
        <option value="GF">FRENCH GUIANA</option>
        <option value="PF">FRENCH POLYNESIA</option>
        <option value="GM">GAMBIA</option>
        <option value="GE">GEORGIA</option>
        <option value="DE">GERMANY</option>
        <option value="GH">GHANA</option>
        <option value="GI">GIBRALTAR</option>
        <option value="GR">GREECE</option>
        <option value="GL">GREENLAND</option>
        <option value="GD">GRENADA</option>
        <option value="GP">GUADELOUPE</option>
        <option value="GU">GUAM</option>
        <option value="GT">GUATEMALA</option>
        <option value="GY">GUYANA</option>
        <option value="HT">HAITI</option>
        <option value="VA">HOLY SEE (VATICAN CITY STATE)</option>
        <option value="HN">HONDURAS</option>
        <option value="HK">HONG KONG</option>
        <option value="HU">HUNGARY</option>
        <option value="IS">ICELAND</option>
        <option value="IN">INDIA</option>
        <option value="ID">INDONESIA</option>
        <option value="IE">IRELAND</option>
        <option value="IL">ISRAEL</option>
        <option value="IT">ITALY</option>
        <option value="JM">JAMAICA</option>
        <option value="JP">JAPAN</option>
        <option value="JO">JORDAN</option>
        <option value="KZ">KAZAKHSTAN</option>
        <option value="KE">KENYA</option>
        <option value="KP">SOUTH KOREA</option>
        <option value="KW">KUWAIT</option>
        <option value="KG">KYRGYZSTAN</option>
        <option value="LA">LAO PEOPLE'S DEMOCRATIC REPUBLIC</option>
        <option value="LV">LATVIA</option>
        <option value="LI">LIECHTENSTEIN</option>
        <option value="LT">LITHUANIA</option>
        <option value="LU">LUXEMBOURG</option>
        <option value="MG">MADAGASCAR</option>
        <option value="MW">MALAWI</option>
        <option value="MY">MALAYSIA</option>
        <option value="MV">MALDIVES</option>
        <option value="ML">MALI</option>
        <option value="MT">MALTA</option>
        <option value="MH">MARSHALL ISLANDS</option>
        <option value="MQ">MARTINIQUE</option>
        <option value="MR">MAURITANIA</option>
        <option value="MU">MAURITIUS</option>
        <option value="MX">MEXICO</option>
        <option value="MD">MOLDOVA, REPUBLIC OF</option>
        <option value="MC">MONACO</option>
        <option value="MN">MONGOLIA</option>
        <option value="MS">MONTSERRAT</option>
        <option value="MA">MOROCCO</option>
        <option value="MZ">MOZAMBIQUE</option>
        <option value="MM">MYANMAR</option>
        <option value="NA">NAMIBIA</option>
        <option value="NP">NEPAL</option>
        <option value="NL">NETHERLANDS</option>
        <option value="AN">NETHERLANDS ANTILLES</option>
        <option value="NC">NEW CALEDONIA</option>
        <option value="NZ">NEW ZEALAND</option>
        <option value="NI">NICARAGUA</option>
        <option value="NE">NIGER</option>
        <option value="NG">NIGERIA</option>
        <option value="NF">NORFOLK ISLAND</option>
        <option value="NO">NORWAY</option>
        <option value="OM">OMAN</option>
        <option value="PK">PAKISTAN</option>
        <option value="PW">PALAU</option>
        <option value="PA">PANAMA</option>
        <option value="PG">PAPUA NEW GUINEA</option>
        <option value="PY">PARAGUAY</option>
        <option value="PE">PERU</option>
        <option value="PH">PHILIPPINES</option>
        <option value="PL">POLAND</option>
        <option value="PT">PORTUGAL</option>
        <option value="PR">PUERTO RICO</option>
        <option value="QA">QATAR</option>
        <option value="RE">REUNION</option>
        <option value="RO">ROMANIA</option>
        <option value="RU">RUSSIA</option>
        <option value="RW">RWANDA</option>
        <option value="SH">SAINT HELENA</option>
        <option value="KN">SAINT KITTS AND NEVIS</option>
        <option value="LC">SAINT LUCIA</option>
        <option value="PM">SAINT PIERRE AND MIQUELON</option>
        <option value="VC">SAINT VINCENT AND THE GRENADINES</option>
        <option value="SM">SAN MARINO</option>
        <option value="SA">SAUDI ARABIA</option>
        <option value="SN">SENEGAL</option>
        <option value="SC">SEYCHELLES</option>
        <option value="SL">SIERRA LEONE</option>
        <option value="SG">SINGAPORE</option>
        <option value="SK">SLOVAKIA</option>
        <option value="SI">SLOVENIA</option>
        <option value="SB">SOLOMON ISLANDS</option>
        <option value="ZA">SOUTH AFRICA</option>
        <option value="ES">SPAIN</option>
        <option value="LK">SRI LANKA</option>
        <option value="SR">SURINAME</option>
        <option value="SZ">SWAZILAND</option>
        <option value="SE">SWEDEN</option>
        <option value="CH">SWITZERLAND</option>
        <option value="TW">TAIWAN</option>
        <option value="TJ">TAJIKISTAN</option>
        <option value="TZ">TANZANIA, UNITED REPUBLIC OF</option>
        <option value="TH">THAILAND</option>
        <option value="TO">TONGA</option>
        <option value="TT">TRINIDAD AND TOBAGO</option>
        <option value="TN">TUNISIA</option>
        <option value="TR">TURKEY</option>
        <option value="TC">TURKS AND CAICOS ISLANDS</option>
        <option value="UG">UGANDA</option>
        <option value="UA">UKRAINE</option>
        <option value="AE">UNITED ARAB EMIRATES</option>
        <option value="GB" selected="selected">UNITED KINGDOM</option>
        <option value="US">UNITED STATES</option>
        <option value="UY">URUGUAY</option>
        <option value="UZ">UZBEKISTAN</option>
        <option value="VE">VENEZUELA</option>
        <option value="VN">VIETNAM</option>
        <option value="VG">VIRGIN ISLANDS, BRITISH</option>
        <option value="VI">VIRGIN ISLANDS, U.S.</option>
        <option value="YE">YEMEN</option>
        <option value="ZM">ZAMBIA</option>
        </select>
      <div id="shippingdest" style="width:30%; color:#F33"></div>
    <script>
        $("#ShippingCountry").change(function () {
              var str = "";
              $("option:selected").each(function () {
                                     if ($(this).text() !== "UNITED KINGDOM")
                                               $("#shippingdest").text("");
                                   str += "Please note that delivery charges do apply on orders shipped outside the UK. After your order has been processed, we will contact you with a specific delivery quote based on the items you have purchased.";
              $("#shippingdest").text(str);}
                          else
                                    $("#shippingdest").text("");
            .change();
    </script>
    </body>
    </html>

    Hello LondonHK,
    It looks like your each function is what is messing you up. It is trying to go through each drop down list once you change the ShippingCountry drop down. So since there are 5 drop downs the code wouldn't work as you wanted.
    I've made a jsfiddle with a little simpler code that should do the trick for you:
    http://jsfiddle.net/chaddidthis/nw6cY/
    Let me know if that works.
    Hope this helps,
    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • -anyone can help me with my program?"Checkers"   a game java gode.

    the problem always in my program is the main.. sorry if im not perfectly good in programming, but i always try my best to understand.. so please help me..thanks
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.ArrayList;
    public class Checkers extends JApplet {
    JButton newGameButton;
    JButton resignButton;
    JLabel message;
    public void init() {
    Container content = getContentPane();
    content.setLayout(null);
    content.setBackground(new Color(0,150,0));
    Board board = new Board();
    content.add(board);
    content.add(newGameButton);
    content.add(resignButton);
    content.add(message);
    board.setBounds(20,20,164,164); // Note: size MUST be 164-by-164 !
    newGameButton.setBounds(210, 60, 120, 30);
    resignButton.setBounds(210, 120, 120, 30);
    message.setBounds(0, 200, 350, 30);
    // -------------------- Nested Classes -------------------------------
    static class CheckersMove {
    int fromRow, fromCol;
    int toRow, toCol;
    CheckersMove(int r1, int c1, int r2, int c2) {
    fromRow = r1;
    fromCol = c1;
    toRow = r2;
    toCol = c2;
    boolean isJump() {
    return (fromRow - toRow == 2 || fromRow - toRow == -2);
    class Board extends JPanel implements ActionListener, MouseListener {
    CheckersData board;
    boolean gameInProgress;
    int currentPlayer;
    int selectedRow, selectedCol;
    CheckersMove[] legalMoves;
    public Board() {
    setBackground(Color.black);
    addMouseListener(this);
    resignButton = new JButton("Resign");
    resignButton.addActionListener(this);
    newGameButton = new JButton("New Game");
    newGameButton.addActionListener(this);
    message = new JLabel("",JLabel.CENTER);
    message.setFont(new Font("Serif", Font.BOLD, 14));
    message.setForeground(Color.green);
    board = new CheckersData();
    doNewGame();
    public void actionPerformed(ActionEvent evt) {
    // Respond to user's click on one of the two buttons.
    Object src = evt.getSource();
    if (src == newGameButton)
    doNewGame();
    else if (src == resignButton)
    doResign();
    void doNewGame() {
    // Begin a new game.
    if (gameInProgress == true) {
    // This should not be possible, but it doens't
    // hurt to check.
    message.setText("Finish the current game first!");
    return;
    board.setUpGame();
    currentPlayer = CheckersData.RED;
    legalMoves = board.getLegalMoves(CheckersData.RED);
    selectedRow = -1;
    message.setText("Red: Make your move.");
    gameInProgress = true;
    newGameButton.setEnabled(false);
    resignButton.setEnabled(true);
    repaint();
    void doResign() {
    if (gameInProgress == false) {
    message.setText("There is no game in progress!");
    return;
    if (currentPlayer == CheckersData.RED)
    gameOver("RED resigns. BLACK wins.");
    else
    gameOver("BLACK resigns. RED wins.");
    void gameOver(String str) {
    message.setText(str);
    newGameButton.setEnabled(true);
    resignButton.setEnabled(false);
    gameInProgress = false;
    void doClickSquare(int row, int col) {
    for (int i = 0; i < legalMoves.length; i++)
    if (legalMoves.fromRow == row && legalMoves[i].fromCol == col) {
    selectedRow = row;
    selectedCol = col;
    if (currentPlayer == CheckersData.RED)
    message.setText("RED: Make your move.");
    else
    message.setText("BLACK: Make your move.");
    repaint();
    return;
    if (selectedRow < 0) {
    message.setText("Click the piece you want to move.");
    return;
    for (int i = 0; i < legalMoves.length; i++)
    if (legalMoves[i].fromRow == selectedRow && legalMoves[i].fromCol == selectedCol
    && legalMoves[i].toRow == row && legalMoves[i].toCol == col) {
    doMakeMove(legalMoves[i]);
    return;
    message.setText("Click the square you want to move to.");
    void doMakeMove(CheckersMove move) {
    board.makeMove(move);
    if (move.isJump()) {
    legalMoves = board.getLegalJumpsFrom(currentPlayer,move.toRow,move.toCol);
    if (legalMoves != null) {
    if (currentPlayer == CheckersData.RED)
    message.setText("RED: You must continue jumping.");
    else
    message.setText("BLACK: You must continue jumping.");
    selectedRow = move.toRow;
    selectedCol = move.toCol;
    repaint();
    return;
    if (currentPlayer == CheckersData.RED) {
    currentPlayer = CheckersData.BLACK;
    legalMoves = board.getLegalMoves(currentPlayer);
    if (legalMoves == null)
    gameOver("BLACK has no moves. RED wins.");
    else if (legalMoves[0].isJump())
    message.setText("BLACK: Make your move. You must jump.");
    else
    message.setText("BLACK: Make your move.");
    else {
    currentPlayer = CheckersData.RED;
    legalMoves = board.getLegalMoves(currentPlayer);
    if (legalMoves == null)
    gameOver("RED has no moves. BLACK wins.");
    else if (legalMoves[0].isJump())
    message.setText("RED: Make your move. You must jump.");
    else
    message.setText("RED: Make your move.");
    selectedRow = -1;
    if (legalMoves != null) {
    boolean sameStartSquare = true;
    for (int i = 1; i < legalMoves.length; i++)
    if (legalMoves[i].fromRow != legalMoves[0].fromRow
    || legalMoves[i].fromCol != legalMoves[0].fromCol) {
    sameStartSquare = false;
    break;
    if (sameStartSquare) {
    selectedRow = legalMoves[0].fromRow;
    selectedCol = legalMoves[0].fromCol;
    repaint();
    public void paintComponent(Graphics g) {
    g.setColor(Color.black);
    g.drawRect(0,0,getSize().width-1,getSize().height-1);
    g.drawRect(1,1,getSize().width-3,getSize().height-3);
    for (int row = 0; row < 8; row++) {
    for (int col = 0; col < 8; col++) {
    if ( row % 2 == col % 2 )
    g.setColor(Color.lightGray);
    else
    g.setColor(Color.gray);
    g.fillRect(2 + col*20, 2 + row*20, 20, 20);
    switch (board.pieceAt(row,col)) {
    case CheckersData.RED:
    g.setColor(Color.red);
    g.fillOval(4 + col*20, 4 + row*20, 16, 16);
    break;
    case CheckersData.BLACK:
    g.setColor(Color.black);
    g.fillOval(4 + col*20, 4 + row*20, 16, 16);
    break;
    case CheckersData.RED_KING:
    g.setColor(Color.red);
    g.fillOval(4 + col*20, 4 + row*20, 16, 16);
    g.setColor(Color.white);
    g.drawString("K", 7 + col*20, 16 + row*20);
    break;
    case CheckersData.BLACK_KING:
    g.setColor(Color.black);
    g.fillOval(4 + col*20, 4 + row*20, 16, 16);
    g.setColor(Color.white);
    g.drawString("K", 7 + col*20, 16 + row*20);
    break;
    if (gameInProgress) {
    // First, draw a cyan border around the pieces that can be moved.
    g.setColor(Color.cyan);
    for (int i = 0; i < legalMoves.length; i++) {
    g.drawRect(2 + legalMoves[i].fromCol*20, 2 + legalMoves[i].fromRow*20, 19, 19);
    if (selectedRow >= 0) {
    g.setColor(Color.white);
    g.drawRect(2 + selectedCol*20, 2 + selectedRow*20, 19, 19);
    g.drawRect(3 + selectedCol*20, 3 + selectedRow*20, 17, 17);
    g.setColor(Color.green);
    for (int i = 0; i < legalMoves.length; i++) {
    if (legalMoves[i].fromCol == selectedCol && legalMoves[i].fromRow ==
    selectedRow)
    g.drawRect(2 + legalMoves[i].toCol*20, 2 + legalMoves[i].toRow*20, 19, 19);
    public Dimension getPreferredSize() {
    return new Dimension(164, 164);
    public Dimension getMinimumSize() {
    return new Dimension(164, 164);
    public Dimension getMaximumSize() {
    return new Dimension(164, 164);
    public void mousePressed(MouseEvent evt) {
    if (gameInProgress == false)
    message.setText("Click \"New Game\" to start a new game.");
    else {
    int col = (evt.getX() - 2) / 20;
    int row = (evt.getY() - 2) / 20;
    if (col >= 0 && col < 8 && row >= 0 && row < 8)
    doClickSquare(row,col);
    public void mouseReleased(MouseEvent evt) { }
    public void mouseClicked(MouseEvent evt) { }
    public void mouseEntered(MouseEvent evt) { }
    public void mouseExited(MouseEvent evt) { }
    static class CheckersData {
    public static final int
    EMPTY = 0,
    RED = 1,
    RED_KING = 2,
    BLACK = 3,
    BLACK_KING = 4;
    private int[][] board;
    public CheckersData() {
    board = new int[8][8];
    setUpGame();
    public void setUpGame() {
    for (int row = 0; row < 8; row++) {
    for (int col = 0; col < 8; col++) {
    if ( row % 2 == col % 2 ) {
    if (row < 3)
    board[row][col] = BLACK;
    else if (row > 4)
    board[row][col] = RED;
    else
    board[row][col] = EMPTY;
    else {
    board[row][col] = EMPTY;
    public int pieceAt(int row, int col) {
    return board[row][col];
    public void setPieceAt(int row, int col, int piece) {
    board[row][col] = piece;
    public void makeMove(CheckersMove move) {
    makeMove(move.fromRow, move.fromCol, move.toRow, move.toCol);
    public void makeMove(int fromRow, int fromCol, int toRow, int toCol) {
    board[toRow][toCol] = board[fromRow][fromCol];
    board[fromRow][fromCol] = EMPTY;
    if (fromRow - toRow == 2 || fromRow - toRow == -2) {
    int jumpRow = (fromRow + toRow) / 2;
    int jumpCol = (fromCol + toCol) / 2;
    board[jumpRow][jumpCol] = EMPTY;
    if (toRow == 0 && board[toRow][toCol] == RED)
    board[toRow][toCol] = RED_KING;
    if (toRow == 7 && board[toRow][toCol] == BLACK)
    board[toRow][toCol] = BLACK_KING;
    public CheckersMove[] getLegalMoves(int player) {
    if (player != RED && player != BLACK)
    return null;
    int playerKing;
    if (player == RED)
    playerKing = RED_KING;
    else
    playerKing = BLACK_KING;
    ArrayList moves = new ArrayList();
    for (int row = 0; row < 8; row++) {
    for (int col = 0; col < 8; col++) {
    if (board[row][col] == player || board[row][col] == playerKing) {
    if (canJump(player, row, col, row+1, col+1, row+2, col+2))
    moves.add(new CheckersMove(row, col, row+2, col+2));
    if (canJump(player, row, col, row-1, col+1, row-2, col+2))
    moves.add(new CheckersMove(row, col, row-2, col+2));
    if (canJump(player, row, col, row+1, col-1, row+2, col-2))
    moves.add(new CheckersMove(row, col, row+2, col-2));
    if (canJump(player, row, col, row-1, col-1, row-2, col-2))
    moves.add(new CheckersMove(row, col, row-2, col-2));
    if (moves.size() == 0) {
    for (int row = 0; row < 8; row++) {
    for (int col = 0; col < 8; col++) {
    if (board[row][col] == player || board[row][col] == playerKing) {
    if (canMove(player,row,col,row+1,col+1))
    moves.add(new CheckersMove(row,col,row+1,col+1));
    if (canMove(player,row,col,row-1,col+1))
    moves.add(new CheckersMove(row,col,row-1,col+1));
    if (canMove(player,row,col,row+1,col-1))
    moves.add(new CheckersMove(row,col,row+1,col-1));
    if (canMove(player,row,col,row-1,col-1))
    moves.add(new CheckersMove(row,col,row-1,col-1));
    if (moves.size() == 0)
    return null;
    else {
    CheckersMove[] moveArray = new CheckersMove[moves.size()];
    for (int i = 0; i < moves.size(); i++)
    moveArray[i] = (CheckersMove)moves.get(i);
    return moveArray;
    public CheckersMove[] getLegalJumpsFrom(int player, int row, int col) {
    if (player != RED && player != BLACK)
    return null;
    int playerKing;
    if (player == RED)
    playerKing = RED_KING;
    else
    playerKing = BLACK_KING;
    ArrayList moves = new ArrayList();
    if (board[row][col] == player || board[row][col] == playerKing) {
    if (canJump(player, row, col, row+1, col+1, row+2, col+2))
    moves.add(new CheckersMove(row, col, row+2, col+2));
    if (canJump(player, row, col, row-1, col+1, row-2, col+2))
    moves.add(new CheckersMove(row, col, row-2, col+2));
    if (canJump(player, row, col, row+1, col-1, row+2, col-2))
    moves.add(new CheckersMove(row, col, row+2, col-2));
    if (canJump(player, row, col, row-1, col-1, row-2, col-2))
    moves.add(new CheckersMove(row, col, row-2, col-2));
    if (moves.size() == 0)
    return null;
    else {
    CheckersMove[] moveArray = new CheckersMove[moves.size()];
    for (int i = 0; i < moves.size(); i++)
    moveArray[i] = (CheckersMove)moves.get(i);
    return moveArray;
    } // end getLegalMovesFrom()
    private boolean canJump(int player, int r1, int c1, int r2, int c2, int r3, int c3) {
    if (r3 < 0 || r3 >= 8 || c3 < 0 || c3 >= 8)
    return false;
    if (board[r3][c3] != EMPTY)
    return false;
    if (player == RED) {
    if (board[r1][c1] == RED && r3 > r1)
    return false;
    if (board[r2][c2] != BLACK && board[r2][c2] != BLACK_KING)
    return false;
    return true; // The jump is legal.
    else {
    if (board[r1][c1] == BLACK && r3 < r1)
    return false;
    if (board[r2][c2] != RED && board[r2][c2] != RED_KING)
    return false;
    return true;
    private boolean canMove(int player, int r1, int c1, int r2, int c2) {
    if (r2 < 0 || r2 >= 8 || c2 < 0 || c2 >= 8)
    return false;
    if (board[r2][c2] != EMPTY)
    return false;
    if (player == RED) {
    if (board[r1][c1] == RED && r2 > r1)
    return false;
    return true;
    else {
    if (board[r1][c1] == BLACK && r2 < r1)
    return false;
    return true;
    *..please ... thanks!!*

    Use code tags to post codes -- [code]CODE[/code] will display asCODEOr click the CODE button and paste your code between the tags that appear.
    db

  • URGENT: Anyone can help me with my creative cloud systems, always ask me to restart??

    every time opening my creative cloud after a few minute they will ask me to restart the device.
    Thank you.

    These questions below may be for a different product... but the KIND of information you need to supply is the same, for the products you use
    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • -anyone can help me with my program?"JFrameWithPanel"

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class JFrameWithPanel extends JFrame
    JTextArea resultArea=new JTextArea(5,22);
    JButton button = new JButton("Exit");
    public JFrameWithPanel()
    super("JFrame with panel and button");
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JPanel pane = new JPanel();
    pane.add(button);
    setContentPane(pane);
    setVisible(true);
    this is my program..
    but it is not running...
    what is the problem with this??
    please!!!

    TRIPLE POSTED
    http://forum.java.sun.com/thread.jspa?threadID=5267873&tstart=0

  • I've bought the first season of Death Note on itunes, and i've was never able to download the 11th episode (Assault), it gives me error -50 each time I try. Can anyone please help me with this?

    the title pretty much has my question i guess. it's my first post so i'm not sur if you'll see all of it. I'll just copy paste it anyhow.
    i've bought the first season of Death Note on itunes, and i've was never able to download the 11th episode (Assault), it gives me error -50 each time I try. Can anyone please help me with this?

    Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • I use "hdmi to component converter" to connect apple tv with my old plasma tv by component cable. Sound is ok but the picture split 2screens left and right. Still can't fix it. Anyone can help or has any idea? should I try convert to av?

    I use "hdmi to component converter" to connect apple tv with my old plasma tv by component cable. Sound is ok but the picture split 2screens left and right. Still can't fix it. Anyone can help or has any idea? should I try convert to av?

    Your TV hasn't entered some odd picture in picture mode has it with  two 'inputs' side by side?
    AC

  • HT201210 hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    Try the suggestions here to see if they resolve your problem:
    http://support.apple.com/kb/ts1559
    If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support.

  • Not sure if anyone can help but I have a copy of Photoshop CS5.1. Ever since it was installed, every now and again when I try do something simple like save a file or scale something using the Transform tool, in fact anything at all it comes up with "Could

    Not sure if anyone can help but I have a copy of Photoshop CS5.1. Ever since it was installed, every now and again when I try do something simple like save a file or scale something using the Transform tool, in fact anything at all it comes up with "Could not complete your request because of a program error". Have thought about re-installing  it but I have lost my serial number.  I'm living in Ireland and trying to get to talk to someone in tech support is a complete joke. Any ideas what to do ? Thanks

    Ianp69549740 have you tried reinstalling Photoshop CS5.1?  If so do you receive any specific errors?  What operating system are you using?

  • My Time Machine says there is no backup disk available.  I've never had any problems with my time machine.  I'm not technologically savvy, so if anyone can help, I'd appreciate it!

    My Time Machine says there is no backup disk available.  I've never had any problems with my time machine completing backups.  I was away from house with my laptop for about 9 days so I'm wondering if there is something I need to do now that I'm home to get it working again.  I'm not technologically savvy, so if anyone can help, I'd appreciate it!
    Thanks,
    Jana

    You can lose your ability to backup through TM for any number of reasons, but the most common is what happens after a update. If your drive still works, your best approach is to read this:
    http://www.chriscolotti.us/technology/how-to-fix-osx-mountain-lion-time-machine/
    The attached link contains helpful graphics, so don't worry if you're not tech savvy.

  • Wonder if anyone can help? Have just bought a new Macbook pro and installed FCP7. I thought that I would get quicktime pro but stuck with QTX. Downloaded QT7 but it won't let me install it. Any suggestions? B

    Wonder if anyone can help? Have just bought a new Macbook pro and installed FCP7. I thought that I would get quicktime pro as standard but stuck with QTX. Downloaded QT7 but it won't let me install it. Says I can't do install as I already have QTX. Does FCP not come with QTpro or am I jsut being stupid. Any suggestions would be great. Thanks.  B

    Hi there,
    Are you running Lion or Snow Leopard? either way this may help by the looks of it.
    http://www.macworld.com/article/161320/2011/07/lion_quicktime7.html
    cheers
    Andy

Maybe you are looking for

  • Why does my video keep stopping at all stages as i'm watching a video

    why does my video keeping stopping at all times

  • OPEN cursor for large query

    OPEN cursor When you OPEN a cursor for a mult-row query, is there a straightforward way that you can have it only retrieve a limited number of rows at a time and then automatically delete those rows as you do the FETCH against them? I'm thinking of s

  • Upgrade to Acrobat XI for Mac with Liscence for Win possible?

    Hi Comunity, I have a liscence for Acrobat Standard 9/ Win. I want to upgrade on XI for Mac. Is this possible or do I have to purchase a new liscence? Thanks for help.

  • Accessing array content methods

    This is quite simple to do in C++ from what I remember but its got me stumped so far (it is getting late so maybe my brains slowing down). I simply want to access an object in my array and use its getValue() function to return the value of that objec

  • Define the Objects in Portal

    Hi,   Could you please briefly define the following in Portal   Folder   iView   Web Dynpro iView   iView Template   Page   Web Dynpro Page   Page Template   Workset   Role   Page Layout   Framework Page    Unresolved Link   Business Object   iView (