Re: Music Association Game Community Center Geeks' Lounge by TheNNS Pieces Mended -The Used Re: Need some ideas for how to program pawn piece in a chess game Programming Software Development by wildgoose Pieces don't need a color. They do need an identifier … Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry …*dim_square,tile_center+j*dim_square canvas.coords(closest, x_center, y_center) pieces[d]=pieces[b] pieces[b]="O" print(tour) clic=0 check… Xcode How can I move game pieces from one place to another Programming Software Development by pinkPanda … trying to do is moving player pieces from their positions how can I implement moving pieces from [number]positions to [number]positions… filed A & B represent player pieces (like in chess) each player have 3 pieces and I placed image view on each… 1 to either position 0 or 2 or place another pieces the player can't move the piece to any other… C++: Random Pieces Programming Software Development by invisal … up, but it is a collection of C++ pieces that I have learnt during these past few years … this e-book "[B][I]C++: Random Pieces[/I][/B]". It is still incomplete. I decide…] There will be around 20 to 25 C++ pieces that will be included in this e-book. I… have finished the first 4 pieces so far. Firstly, I will post the first… [PYTHON] Place pieces on a chessboard Programming by OnlyThierry …quot;) whiter=PhotoImage(file="./pieces_image/whiter.gif") pieces=[blackb,blackk,blackn,blackp,blackq,blackr,whiteb,whitek,whiten,whitep…quot;P": board_representation[i][j]=letter for p in pieces: piecesx=i piecesy=j if i<tiles-1:… Re: C++: Random Pieces Programming Software Development by gashtio … people posting tutorials, but I have to disagree with both pieces you posted. You need not do any of these things… Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry …, I still have the problem that it doesn't display pieces on the board :(. =========== RESTART: C:\Users\Thierry\Desktop\Chess\Chessboard… Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry Thanks for your help, it's a better way than mine for moving a piece. However, it doesn't solve the main problem that is : "Why after read the ".lvl" file, it doesn't put pieces on the board ?" Re: [PYTHON] Place pieces on a chessboard Programming by Gribouillis I cannot run your code because I don't have the images of the pieces and the lvl file. Can you zip the folder pieces_image and attach the zip to a post ? Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry ….x y2=event.y canvas.coords(closest, x2, y2) However, pieces can move everywhere because the move is defined by x… Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry … states' variables to only allow players to move their own pieces. Unfortunatedly, I never did that before so I think to… Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry … I don't know why I still can move black pieces at the first turn. I asked yet to reload the… Re: [PYTHON] Place pieces on a chessboard Programming by OnlyThierry … to convert my coordinates [i][j] to find the correct pieces on my board [0 to 63] from the top-left… Photo pieces compiled in table Programming Web Development by Borderline … to piece together photos on my website. I have the pieces in the correct order, but there is white space between… split a string of words into pieces and print Programming Software Development by -obol- Hey everybody im a real newbee at python and im just wondering how to split a string of words into pieces and print on separate lines for example: " sun is shining" to: sun is shining i know this might be a simple task for a lot of people but i would appreciate any help that i can get. THANX //OBOL Re: split a string of words into pieces and print Programming Software Development by jlm699 …=-obol-;847982]how to split a string of words into pieces [/QUOTE] Use the [icode]split()[/icode] method like so: [code… C++ newbie: how to extract pieces of a line from a text file Programming Software Development by Annettest …, but I can't figure out how to extract certain pieces of it. I would very much appreciate any help and… Re: C++ newbie: how to extract pieces of a line from a text file Programming Software Development by Greywolf333 …, but I can't figure out how to extract certain pieces of it. I would very much appreciate any help and… Reading two pieces of data from each line Programming Software Development by Lightslei I need the program to read 2 pieces of data from each line of a text. For example … How do I use classes as pieces in a board game? Programming Software Development by zack_falcon …, I found out that other programmers use classes for the pieces. I'm no expert in classes. I've only used… Re: How do I use classes as pieces in a board game? Programming Software Development by Ketsuekiame … or enums (preferred) Also, you can use inheritence. If the pieces all share common properties, but there are unique properties required… Re: How do I use classes as pieces in a board game? Programming Software Development by zack_falcon …, and Rank 15 repeats twice, for a total of 21 pieces. Per player. What I had in mind was 15 classes… Re: How do I use classes as pieces in a board game? Programming Software Development by Ketsuekiame … of properties is, as you can see above, all the pieces have a rank and a pieceposition. It doesn't matter… Re: How do I use classes as pieces in a board game? Programming Software Development by Ketsuekiame … to store about that player. Their name, their score, what pieces they have etc. A player is an object in your… Re: NullPointerException Programming Software Development by NewOrder …<pieces.length;i++) { while(pieces[i][j]!=pieces[rowEnd][columnEnd]){ if(pieces==null || pieces[i][j]==pieces[rowEnd][columnEnd]) valid=true; else pieces[i][j]=pieces[rowEnd… My Chess Game (works) Programming Software Development by NewOrder …; pieceMovesKing==true && pieceDoesntCollideKing==true) { checkSafe = true; pieces[kingRow2][kingColumn2]=pieces[kingRow][kingColumn]; pieces[kingRow][kingColumn]=null; } } } } dynamicCheckWhite=false; dynamicCheckBlack=false; //}while… Re: How do you import an array to another class? Programming Software Development by NewOrder …columnEndN;j<pieces[i].length;j++) while(pieces[i][j]!=pieces[rowEnd][columnEndN]){ if(pieces[i][j]==null || pieces[i][j]==pieces[rowEnd][columnEndN])… valid=true; else pieces[i][j]=pieces[rowEnd][… How do you import an array to another class? Programming Software Development by NewOrder …rowEnd) && pieceDevour){ pieces[columnStartN][rowStartN]=null; pieces[columnStartN][rowStartN]=pieces[columnEndN][rowEnd]; } rowStartN=rowEnd;…this array: ChessPiece pieces[][]; pieces =new ChessPiece[7][7];// pieces[][] cant be imported pieces[1][0]=new… NullPointerException Programming Software Development by NewOrder …+" "+rowStart+" "+columnEnd+" "+rowEnd); pieces[rowEnd][columnEnd]=pieces[rowStart][columnStart]; } else{ moveValid=false; System.out.println("…