Checkers, Crowning of piece

Hi,
I am creating a checkers game and need some help. My board is created using a 2D array of type Player (I have a player class) - Player [][] men = new Player [8][8];
Therefore the squares hollding black pieces are men[x][y] = player 2 and white are men[x][y] = player 1 (Player 1 and player 2 are both objects from player class).
My problem is that I am unsure how to crown a piece when it lands on the relevant square. I am thinking along the lines of using a Piece class and having a maximum of
4 pieces - WHITE_PIECE, WHITE_KING, BLACK_PIECE, BLACK_KING, but unsure how to relate these to my players.
Any help with crowing would be extremely helpful, Thanks.

jwenting wrote:
A Game has 2 players and a Board. A Board has 100 squares (50 white, 50 black) ...not to nitpick (OK, yes I am), but it's actually an 8 x 8 board which comprises 64 squares. Of course only 1/2 the squares are permissible for play.
But I agree with everything else you've said. To the OP: each piece can has several states (or as described above, characteristics) of which one of them (most likely a boolean) is "crowned". Its behavior of course will be dependent upon its state, and you'll have to code for this in your model. If you need more specific information, you'll have to ask a more specific question. Good luck!

Similar Messages

  • Help with Checkers

    hi
    i would like to build a checkers game(the rules are easier to code, will move to chess) heres how this works, this will be played on a browser(no downloading or anything) over the internet, with two players. the player can movie the pieces with either the mouse or the keyboard. Also they can rotate board( their own camera angle) to see the different positions of the board. this is not like the usual games where u get a bird-eyes view, but rather a 3D envirnoment with 3d pieces and a board, something like chessmaster just checkers. Also as it is over the internet, the game must load quickly.
    So now what should i use?? applet or webstart??? kindly list pros or cons?
    to design the pieces what should i do?? learn maya or 3d studio max or advanced photoshop?
    Is there a better way to accomplish this task???
    Ali

    yes, the files are cached on the users computer, on my computer (windows xp) the apps are stored here:
    C:\Documents and Settings\Weston\Application Data\Sun\Java\Deployment\javaws\cache
    the end user is never meant to interact with these files but rather they have an application on their start menu called "Java Web Start" where they can view all the webstart apps they have used an launch them from there. You are able to say whether the user can access the game from offline or not (this is specified in your jnlp file). When I say offline I mean they don't have to go to a web page to play the game, they can access it from their start menu, this has no effect on whether your game can connect to a server or not.
    Use the jarsigner utility to sign jars. Its free, no companies offer this service, you do it yourself.
    Here is 'webstart walkthrough': http://www.cokeandcode.com/info/webstart-howto.html
    If I were you I would not be so concerned about deployment at this point, learn java and some 3D graphics and when you have a game then make a decision.
    http://www.myjavaserver.com/~theanalogkid/servlets/app/mighty_bubbles.jnlp
    http://www.cyntaks.com/projects/asteroids/webstart/asteroids.jnlp <- my game :)
    http://www.puppygames.net/downloads/hallucinogenesis/hallucinogenesis.jnlp
    hope you don't mind malohkan: http://www.gamelizard.com/webstart/rimscape.php <- Malohkan's game
    those are a few good webstart games if you want to check them out. 2 of them make use of a 3D rendering api (mine and the super elvis game) so you can see an example of that too. Note that both of our games are 2D but use openGL which uses your 3D accelerator to create the graphics. So if you were going to write a 3D game with webstart it would launch like either of ours.

  • Problems with network Checkers Game

    HI all. I have a checkers game. But i can't create a network.
    Here is my work :
    Server:
    http://www.filefactory.com/file/agg5a77/n/Checkers_java
    Client:
    http://www.filefactory.com/file/agg5a78/n/client_java
    Can anybody help? =)

    I'm sorry for spam. Didn't think that was spam.
    Here server's part:
    public class Checkers extends JPanel {
       public static void main(String[] args) {
           ServerSocket s = new ServerSocket(1989);
           while(true)
           { Socket ss=s.accept();
             ObjectInputStream in = new ObjectInputStream(ss.getInputStream());
             ObjectOutputStream out = new ObjectOutputStream(raul.getOutputStream());
            JFrame window = new JFrame("Checkers");
            Checkers content = new Checkers();
            window.setContentPane(content);
            window.setSize(500,500);
            window.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
            window.setResizable(false); 
            window.setVisible(true);
       }------------------------------------------------------- Here are nested class CheckersMove.
    private 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;
    private static class CheckersData {
    void makeMove(CheckersMove move) {
             makeMove(move.fromRow, move.fromCol, move.toRow, move.toCol);
           * Make the move from (fromRow,fromCol) to (toRow,toCol).  It is
           * assumed that this move is legal.  If the move is a jump, the
           * jumped piece is removed from the board.  If a piece moves
           * the last row on the opponent's side of the board, the
           * piece becomes a king.
          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) {
                // The move is a jump.  Remove the jumped piece from the board.
                int jumpRow = (fromRow + toRow) / 2;  // Row of the jumped piece.
                int jumpCol = (fromCol + toCol) / 2;  // Column of the jumped piece.
                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;
           * Return an array containing all the legal CheckersMoves
           * for the specfied player on the current board.  If the player
           * has no legal moves, null is returned. 
          CheckersMove[] getLegalMoves(int player) {
             if (player != RED && player != BLACK)
                return null;
             int playerKing;  // The constant representing a King belonging to player.
             if (player == RED)
                playerKing = RED_KING;
             else
                playerKing = BLACK_KING;
             ArrayList<CheckersMove> moves = new ArrayList<CheckersMove>();  // Moves will be stored in this list.
             /*  First, check for any possible jumps. 
             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 any jump moves were found, then the user must jump, so we don't
              add any regular moves.  However, if no jumps were found, check for
              any legal regualar moves.
             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 no legal moves have been found, return null.  Otherwise, create
              an array just big enough to hold all the legal moves, copy the
              legal moves from the ArrayList into the array, and return the array. */
             if (moves.size() == 0)
                return null;
             else {
                CheckersMove[] moveArray = new CheckersMove[moves.size()];
                for (int i = 0; i < moves.size(); i++)
                   moveArray[i] = moves.get(i);
                return moveArray;
          }  // end getLegalMoves
           * Return a list of the legal jumps that the specified player can
           * make starting from the specified row and column.
          CheckersMove[] getLegalJumpsFrom(int player, int row, int col) {
             if (player != RED && player != BLACK)
                return null;
             int playerKing;  // The constant representing a King belonging to player.
             if (player == RED)
                playerKing = RED_KING;
             else
                playerKing = BLACK_KING;
             ArrayList<CheckersMove> moves = new ArrayList<CheckersMove>();  // The legal jumps will be stored in this list.
             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] = moves.get(i);
                return moveArray;
          }  // end getLegalMovesFrom()Edited by: Java-Maker on May 10, 2009 9:10 AM

  • -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

  • Recommendation on spell checkers

    as the subject line suggests i am looking for recommendations on spell checking engines for Java by anyone who could share their experiences with me. I did a search on google for this and came up with 70,000 odd hits. a search on the fourms seems to generate entries for people who are mucking about writing their own spell checkers as homework or for fun but neither really helps me.
    so i am hoping that someone might be able to say about the different options available online "that's good" or "i never heard about that one" or even the "yikes! don't touch that piece of junk"
    the first few i found were.
    http://www.jspell.com/jspell.html
    http://www.wintertree-software.com/dev/ssce/javasdk.html
    http://xde.net/xq/tool.spellchecker/qx/index.htm
    but feel free to tell me about whatever.
    other than just how much you liked or disliked a particular product i am interested in knowing if and how easy or difficult it is to include my own specialized "dictionaries" of words with these products. i am not so interested in switching languages but in having dictionaries that include the terminology of the particular demographic that my application is built for.

    I'm pretty pleased with the one from Keyoti
    http://www.keyoti.com/products/rapidspell/
    They do a JSP one too, but I have only tried the
    evaluation of that. The tech support was quick, no
    complaints!
    I guess it depends on exactly what ur looking for??
    thanks for the feedback. i am not looking for JSP but I just wanted to hear someone say something positive about any of these. as i stated previously the ability to alter the "dictionary" of words is important to me so i'm glad to see it in the component.

  • [HELP] Checkers (Droughts) game.

    I hope everyone is fine,
    I want to make a checkers game by java that allows two players to play against each other.
    But I am beginner in programing.
    So if anybody could post some codes for the game or even some outlines , I would be thankful.

    Khalid.S wrote:
    I want to make a checkers game by java that allows two players to play against each other.
    But I am beginner in programing.Then I'd suggest starting with something simpler. Mastermind perhaps?
    Checkers has a lot of components to it - board, pieces, allowable moves, piece taking and conversion - that make it a big project to take on board at this stage.
    Winston

  • When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.

    Problem:
    When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.
    Any help that you can provide in helping my iPhone accurately sync with iPhoto and iTunes will be greatly appreciated.
    Symptoms:
    1)   Sync:  It’s not completing the sync.  Below, I’ve provided all of my settings from the iTunes Summary tab so that you might tell me if I’ve selected any incorrect options.  I prefer to sync the “old school” way – by connecting to the computer – as opposed to syncing over the cloud. Perhaps this is what’s causing the problem? Here is a list of the steps displayed in the iTunes window as the sync progresses:
    waiting for sync to start (step 1 of 7)
    backing up (step 2 of 7)
    preparing to sync (step 3 of 7)
    determining apps to sync (step 4 of 7)
    preparing apps to sync (step 5 of 7)
    importing photos (step 6 of 7)
    waiting for changes to be applied (step 7 of 7)
    syncing apps / copying 1 of 4 (App name) (step 7 of 7)
    canceling sync
    apple icon
    2)   Photos: I've selected only certain of my iPhoto albums to sync to my iPhone.  All of the albums are correct/complete in iPhoto.  All of the albums are listed on my iPhone, both before and after the sync, but the albums are empty (no actual photos) before and after the sync. Perhaps this is tied to the fact that the sync isn’t completing, but because “importing photos” is one of the steps that the incomplete sync displays, I don’t know.
    3)   Apps: When I launch iTunes and click on the Apps folder under the Library listing, then click on the Updates tab, iTunes searches for any Apps needing to be updated and provides a list.  If I click on Update All, the Apps are successfully updated in iTunes.  But, when I plug in my iPhone so that the updates will transfer to the apps on my iPhone, the updates don’t transfer to the apps on my iPhone and those apps still reflect that they need updating on the iPhone.
    Other Potential Pertinent Info:
    The flash memory hard drive on my MacBook Air recently died (perhaps a month or two ago).  Apple had emailed me about a known issue and literally the next day, my MacBook Air crashed.  I installed a new flash memory drive and re-installed everything from a backup off of an external hard drive.  Everything seems to be working fine; it recreated accurately all of my software and data, including iPhoto and iTunes, the pictures and songs (respectively) for which are stored on that hard drive, as opposed to being on the flash memory in the MacBook Air itself.  However, I don’t recall if the start of the sync problem described herein started happening at the same time that I replaced the flash memory drive.  All I know is that the computer is working perfectly in all respects and that even as the sync is failing, it at least says that it’s doing the right things and looking in the right places (e.g., the list of albums on my iPhone matches the list of albums in iTunes, etc.).
    Settings/Status:
    MacBook Air
    OSX v. 10.9
    iPhoto ’11 v. 9.5 (902.7)
    iPhone iOS 7.0.4
    iTunes v. 11.1.3 (8)
    Summary Tab
    Backups (This Computer)
    Options
    Automatically sync when this iPhone is connected
    Sync only checked songs and videos
    Photos Tab
    Sync Photos from iPhoto (429 Photos)
    Selected albums, Events, and Faces, and automatically include (no Events)
    Albums – 9 are selected

    You need to download iTunes on your computer. iOS 6 requires the latest version of iTunes which is 10.7.

  • Discount in pieces

    Hi Experts,
                      What is the provisions in SAP B1 2007 B for managing discount in pieces of items in SO , delivery and A/R Invoice.
    For Ex- in SO, item1  with quantity 10 and free quantity is 2or 3 , how do we manage this process in the system.
    Thanks and Regards
    Piyush

    Hi
    Enable the Field "Type" in Form Setting and include the text as Free items in So then call the item and give the discount 100 or put the unit price is o.
    For Ex:  Item X   10Qty   100rs  tax-vat4- total 1000-tax amount 40
                 next line test - free items
                 item x   2Qty   100rs  discount 100 -
    or unit price 0rs as per wish of client
    Giri

  • Fire Fox sent not all the data in text form. Reached only piece of information. Where can I find the cache of sent text?

    Fire Fox sent not all the data in text form. Reached only piece of information. Where can I find the cache sent the text?
    For example, I posted an article on a news site, but found that only a small part of my article was posted.

    I'm not sure whether Firefox saved that information. There is a chance that it is in the session history file, especially if you haven't closed that tab yet. To check that:
    Open your currently active Firefox settings folder (AKA your Firefox profile folder) using
    Help > Troubleshooting Information > "Show Folder" button
    Find all files starting with the name sessionstore and copy them to a safe working location (e.g., your documents folder). In order to read a .js file, it is useful to rename it to a .txt file. Or you could drag it to Wordpad or your favorite word processing software.
    The script will look somewhat like gibberish, but if you search for a word in your article that doesn't normally appear in web pages, you may be able to find your data.
    Any luck?
    For the future, you might want to consider this add-on, although I don't know how long it saves data after you submit a form: [https://addons.mozilla.org/en-US/firefox/addon/lazarus-form-recovery/].

  • I am unable to hear anything on my iphone 4 nor can the person i call hear anything when i speak - I think that my ear piece and mike have both got magnetised how do fix the problem

    I am unable to hear anything on my iphone 4 nor can the person i call hear anything when i speak -
    I think that my ear piece and mike have both got magnetised how do fix the problem
    Please help

    I have the same problem!! It lead to many other problems with my phone
    I just arranged a repair with apple. Yes its inconvenient to be without a phone for a while but if your phone is in warranty its good to get it looked at professionally!

  • Iphone 4S; Phone & audio piece; Incoming calls are NOT routed automatically??

    When I dial out; no problem the calls automatically goes through ear pice.
    When I get incomming calls the call goes to phone, not even to the speaker in in the phone. So I have to
    1.Slide  the bar    (then first realizing (again) dam: I hear nothing)
    2. Choose the box for speaker options
    3. Choose my blue ant piece..
    By then some callers think I am not picking up or there is somthing wrong..!
    My 3 colleaguers have same phone and no such problems. We are at a loss and I could not find reply in community groups. There was note about Iphone 5 and  not correcting to Car speaker automatically. This was noted as a softwre issue Apple might address in next version. But since my colleagues do not have problem with their Iphone it must be either my settings or a weird fault with my phone.
    One of my collegues have same ear pice as me, so the issueis not that either.
    Is there some weird setting I need to fix to correct the problem?
    Thank you

    Are you able to make calls? I would try a couple different things -
    1. Try doing a double hard reset - Press and hold home button and the sleep wake button at the same time until the screen displays the slide to shut down red button. Continue pressing and holding both the buttons until the screen goes black and then the apple logo flashes up. Continue pressing and holding both the home and sleep wake button beyond this point until the screen goes black again. At this point, let go of the home button and press once the sleep wake button as you would to start your phone. See if this double hard reset helps clear out any cache.
    2. If this fails, I would try restoring the phone as a new phone in iTunes. Backup your phone before this so that you dont lose your contacts, etc. You can do a couple test calls once the firmware is installed before setting up the phone, data, apps, etc. If it looks good, try restoring your phone from an earlier backup.
    If everything fails, call AppleCare or see a Genius in the store.

  • Is Motion a total piece of garbage?

    What do you think guys?
    Even when things are running well, there's always some weird glitch or system hang that makes this thing practicly unusable. Like continuous playback, even after the spacebar is hit or the mouse is clicked or the escape button is hit and I have to force quit. Sometimes it won't let me delete layers and I have to quit. Sometimes it won't let me copy layers, between projects and otherwise, and I have to quit. And gosh darn it, sometimes it just up and quits on its own.
    There are a limited set of key shortcuts for navigating the timeline (1 frame, 10 frames, next and previous markers, jump to in/out point, jump to begining/end of project, that's it) No zoom in/out (moving the mouse pointer back and forth between that little slider is getting old), no jump to next edit, a hand tool for the timeline would be useful, no way to reliably go to the begining/end of a layer without using the mouse and shift key, and that mini timeline bar below the canvas is useless if your project is longer than a few minutes. Why didn't they just port over the navigation scheme from FCP and have a customizable shortcut layout and make it easy on everyone?
    Why doesn't it copy and paste layers directly to where the playhead is, instead of where the layer was copied from? It seems like there is a lot of dragging and dropping necessary to make this program work and I don't know how the rest of you feel, but that's not really how I work.
    No copying digits in the inspector to the clipboard, no way to reliably synch graphics to audio because of either audio or frame drop, and now I'm having a synch issue because Motion is incapable of a 23.976 fps frame rate, only 23.98.
    This program has the potential to be a really great tool and I know that this is only the second version, but Apple has a bit of a problem with usablility, in my opinion. It seems like they want you to use their products a certain way and if you deviate from that, you will run into problems. There should be at least 3 different ways to do the same thing, like in Photoshop or even FCP for that matter. A lot of their interface design is dumbed down in favor of using a one button mouse all of the time instead of giving users options (context menus anyone?). Really, they should be jacking sucessful design concepts and packing them into every product they make instead of trying to reinvent the wheel every time. Anyone try and use Soundtrack Pro?
    Oh, and if anyone has any answers to the issues I'm having in the first three paragraphs, any feedback would be much appreciated.
    Thanks.
    -G
    1.6 GHz G5 1.5GB RAM   Mac OS X (10.4.3)   Final Cut Studio

    I see your point, but the tool is still very useful
    to me. It's hardly a piece of garbage. I still use
    After Effects 10% of the time, but Motion with it's
    quirks has become my tool of choice for most stuff
    that FCP can't handle.
    Maybe I just don't enjoy quirky software. I like it when it works the same every time, rather than trying to figure out what set of operations I just performed produced the glitch I have to deal with now, but thats's just me.
    Here is one point that I don't understand:
    I'm having a synch issue because Motion is
    incapable of a 23.976 fps frame rate, only 23.98.
    What kind of work are you doing where this causes the
    sync to get messed up? By my math, your sequence
    would have to be nearly an hour long before the
    difference would even express itself.
    I have a five act doc that was shot in 24p DV, up-resed to HD at 23.976 fps and then down-resed to NTSC quicktime files at the same frame rate to be used as reference for the lower thirds I am creating. The acts range in length from 9 minutes to 30 minutes. The thing is that all they consist of is the base reference movie layer and either 1 text layer or 1 text layer, one still and one mask. Everything synchs up perfectly in Motion, but when I output just the lower thirds with alpha and then drop them into FCP and place them over the same reference movie I used in Motion, which is what is going to happen when the lower thirds are encorporated into the actual upres, the lower thirds don't synch. Specificly, one title takes place at 00:20:09:07 in Motion. That's 1809 seconds, 7 frames. At 23.98 fps that's 43386.82 frames. At 23.976 that's 43379.584 frames, a difference of roughly 7 frames, which means the lower thirds at 23.98 fps is going to shift forward 7 frames, which is about what I've been seeing in FCP. The titles occur later than they should.
    The reason the project files are so long is because they have to be. I'm just doing the lower thirds and then handing off the output to someone else to be placed into the final output. There are at least 175-200 titles that need to be in synch and chopping it up and doing it manually after my output is a bit of a headache, about a days worth.
    I don't
    believe Motion was intended for editing long
    sequences and this could be part of your problem.
    Good to know, but everything I've read and heard has led me to belive this was appropriate for longer projects. Guess I was wrong.
    I break my Motion projects into small pieces and
    reassemble them in FCP. Smaller sequences are easier
    for Motion to manage since it uses RAM to cache your
    footage. Perhaps some of your freezing problems are
    related to loading long sequences.
    Not long sequences. One base reference layer and many small (3-5 sec) text animations. The thing is that Motion will behave itself for a fair amount of time, but then I will give me weird problems for a half and hour. Obviously, I need a better machine (don't we all), but I've used Motion on newer dual processor G5's with a lot of RAM and decent GPU, and it still crashes sporatically. Can't wait for Motion 3.
    Thanks for caring:)
    -G
    1.6 GHz G5 1.5GB RAM Mac OS X (10.4.3) Final Cut Studio

  • Certain music pieces and apps won't download from my iPod to iTunes on my MacBook

    I want to put what is on my iPod on my new MacBook, but certain pieces and apps won't download because my computer isn't authorized (so it will delete it from my iPod if I sync), but when it asks me to authorize it it uses an old Apple ID that doesn't exist anymore and to which I do not have access. Any ideas how to fix this? I just want to be able to sync my iPod with this computer without worrying about losing anything.

    Check out this article:
    iOS: How to transfer or sync content to your computer
    Read the "iTunes and App Store Content" section, especially the "Transferring purchased content" link there.

  • When I boot up my Mac Pro, I get a small black puzzle looking piece on the lower right side of my thunderbolt

    Brand new Mac Pro, 2 thunderbolt monitors;
    I get a small black puzzle looking piece on the lower right side of my  1st thunderbolt monitor when I boot up. It goes away once the computer fully boots, it is only on  there for a second or so. Does anyone have a similar issue?
    These are only 1 month old.

    It has been seen before, when hardware was malfunctioning:
    Re: hello, I turn on my mac and I see a figure over the right part of the screen, do anybody knows what is that?
    Re: bootup symbol

  • Missing pieces during stock transfer

    Hello folks!
    I have a typical problem. i guess if u have worked for domestic deployment project, u wouldnt laugh!!.
    Well, i make a 2-step plant to plant stock transfer, say with 100 pieces. when i complete the stock transfer at the receiving plant, i find 2 pieces missing, how would system accommodate this loss?? it would constantly display the material as in transit.
    (the great Indian Scenario : There are thefts happening in the broad day light in the name of OCTROI. There WILL be a problem in the documents u r carrying with the goods at any given time unless u r ready to part with one or two pieces of what u r carrying. now there are 2 pieces with barcocdes are missing. how to destroy these barcodes legally. so that audit person has no problem with it/ or we have sufficient documents duly signed by the senior most employee in the client company to show why these barcodes have been destroyed)

    Hi,
    SAP suggest the following:
    1) either receive the missing parts and scrap them in the receiving plant or
    2) receive in the receiving plant and make a return STO to the supplying plant and scrap there.
    MdZ

Maybe you are looking for

  • BAPI returns less number of records when called from WebDynpro

    Hi, We have a BAPI which updates some tables and then bring back output in the form of a table. When we execute BAPI from R/3 we get all records. When we execute the BAPI using webdynpro, for the same input values, we are always getting 22 records. T

  • Problem : can't close a database connection

    Hi, I'am using connection pool under weblogic 6 and I can't close the connection when a SQL exception occures. The connection always stay alive, even after a while, so when all connection have failed, I must restart the server. Thanks for any kind of

  • HT2477 how can i make icons out of my bookmarks

    icons out of bookmarks?

  • Audition cs3  can interfere with photoshop cs3 , cs5 or cs6?

    Hi a friend on mine , have photoshop cs3 and installed audition cs3 he told me he had to uninstall audition cs3 because it gives issues with photoshop , because shares some dll is it true? thanks

  • System prefs for kids- Question

    I have just created a user account with parental settings for my young child learning to read/write. without giving his account admin privileges, can I, as admin, create specific system prefs like a larger pointer and slower mouse/trackpad settings t